IE/IP/Javascript problem

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Jan 2008
Posts: 23
Reputation: raziane is an unknown quantity at this point 
Solved Threads: 0
raziane raziane is offline Offline
Newbie Poster

IE/IP/Javascript problem

 
0
  #1
Jan 16th, 2008
hi
odd problem with IE and Javascript?
when I open my pages using ip (and not host name) thier javascript functions and events dont
fire.
can any one help?
Last edited by raziane; Jan 16th, 2008 at 10:53 am.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,609
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 464
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: IE/IP/Javascript problem

 
0
  #2
Jan 16th, 2008
> when I open my pages using ip (and not host name) thier javascript functions and events
> don't fire.
You mean http://xxx.xxx.xxx.xxx:8080/webapp/test.html over http://hostname:8080/webapp/test.html ?

> can any one help?
Use firefox to run your web app and look at the error console. (Tools -> Error Console)
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 23
Reputation: raziane is an unknown quantity at this point 
Solved Threads: 0
raziane raziane is offline Offline
Newbie Poster

Re: IE/IP/Javascript problem

 
0
  #3
Jan 17th, 2008
first- thank u for your attention.
second- yes , using http://xxx.xxx.xxx.xxx:8080/webapp/test.html to access the page my javascript event dont fire and using http://hostname:8080/webapp/test.html there is no problem !
third- firefox has no problem in this case and javascript events fire correctly.

and I need the solution for IE , because of its popularity in my country.
Last edited by raziane; Jan 17th, 2008 at 7:09 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: IE/IP/Javascript problem

 
0
  #4
Jan 17th, 2008
IP addresses as web addresses are obsolete.

1. Don't use IP addresses. Use of an IP address in a web address is usually a sign of sneakiness. Some firewalls block this (keeping your user from getting to your site). An IE security setting may be blocking this.

2. If you used a relative reference to the JS file, the browser expects to build the path to find the script by using the url of the current page. It gets lost when an IP address appears instead.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 23
Reputation: raziane is an unknown quantity at this point 
Solved Threads: 0
raziane raziane is offline Offline
Newbie Poster

Re: IE/IP/Javascript problem

 
0
  #5
Jan 17th, 2008
hi MidiMagic
you are right , generally speaking , using IP instead of url is'nt a good method.
and I'm not using IP address usually.
in fact I want to demo a project, and to access my server it is required to use IP address.
and javascript events and function all are inline code, (not relative reference to the JS file)
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: IE/IP/Javascript problem

 
0
  #6
Jan 18th, 2008
It could still be a security setting. IP addresses are usually counted as not trusted, and so the security won't allow scripts.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 23
Reputation: raziane is an unknown quantity at this point 
Solved Threads: 0
raziane raziane is offline Offline
Newbie Poster

Re: IE/IP/Javascript problem

 
0
  #7
Jan 20th, 2008
I removed any limitting security settings and the still the problem exists? !!!!!!!!! ?
any help ??
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 335
Reputation: antioed has a spectacular aura about antioed has a spectacular aura about 
Solved Threads: 17
antioed's Avatar
antioed antioed is offline Offline
Posting Whiz

Re: IE/IP/Javascript problem

 
0
  #8
Jan 20th, 2008
If it works in Firefox using IP then what is different in IE? Seems like a security setting could disable scripting across domains and consider "xxx.xxx.xxx.xxx" a "domain"? If your objects reference by DNS...different domain. Either way...defining the IP as a "local intranet site" and checking browser scripting permissions might be worth trying if you haven't already.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 23
Reputation: raziane is an unknown quantity at this point 
Solved Threads: 0
raziane raziane is offline Offline
Newbie Poster

Re: IE/IP/Javascript problem

 
0
  #9
Jan 21st, 2008
yes , it is a security problem , I added the ip address to trusted sites and now my events work.
thanks to antioed and MidiMagic
Last edited by raziane; Jan 21st, 2008 at 4:31 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC