•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,219 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,245 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1110 | Replies: 8 | Solved
![]() |
> 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)
> 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.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
•
•
Join Date: Jan 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
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.
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 6:09 am.
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.
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
•
•
Join Date: Jan 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
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)
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)
•
•
Join Date: Jan 2004
Location: Washington DC
Posts: 335
Reputation:
Rep Power: 6
Solved Threads: 16
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax asp cross-browser javascript menu with few lines of code developer development firefox home html internet javascript javascript smooth scrolling scroll smoothly window document position javascript tab menu with rounded corners generator microsoft msdn office prevent javascript menu from getting hidden under flash movies site software sql vista web
- Javascript Problem with Firefox (JavaScript / DHTML / AJAX)
- Javascript Problem (Windows 9x / Me)
- Links won't open: Javascript related. (Web Browsers)
- problem in hotmail (Java)
- Page Cannot Be Displayed & javascript:doNetDetect() Errors (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Why this does not works,. related to href and src
- Next Thread: Pass a 2D-array with AJAX



Linear Mode