From client side, I access with https. In my code
On server side, is ruby on rails:
I don't know whether Ajax.Updater missed my https. I found articles saying: Ajax.Updater is from Ajax.Request and the latter is from XMLHttpRequest, and XMLHttpRequest can transmit on both http and https. Then where is the problem??
Anyone know?
thanks.
Code:
alert(location.protocol) // pop up https
new Ajax.Updater("sip_tab_content",
"/rails/test_modules/show/" + $F("boardid"),
{method :'get',
onFailure:displaySIPTabFailure,
onComplete:displaySIPTabFailure
});
On server side, is ruby on rails:
Code:
def show
@test_module = TestModule.find(params[:id])
File.open("C:\\rubylog.txt", 'w') {|f| f.write(request.url)} # I get http://....... here
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @test_module }
end
end
Anyone know?
thanks.
Comment