Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript issue in Safari 1

Status
Not open for further replies.

Ceebo68

Programmer
Apr 16, 2008
5
US
I have a page that uses an onLoad function. The first time a user is on the page it works just fine. If a user clicks a certain submit button they are redirected to a second page. After the user selects something from a dropdown box they click another submit button (using Method="Get" to pass variables back) they are redirected back to the first page. After they are redirected back to the first page the Javascript (all Javascript) stops working. This only happens in Safari (IE, FireFox, etc. all work fine). It has to be something on the second page, becuase on the first page there are other submit buttons the user can press that they can perform a task on and be redirected to the first page and the Javascript still works. Does anyone have any ideas as to what could be on the second page that would make Javascript stop working for the remainder of the session? The Javascript on all pages is broken after visiting the second page in question. This matter is rather urgent, so please jump in and put your two cents in.
 
Enable the debug window in Safari (use Google to find out how), and then see what errors (if any) are being thrown.

P.S. Is the issue with both Safari 2/Mac and Safari 3/Mac, or just with v2? If the latter, then I suggest it's probably not something wrong with your code as such.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I am actually running Safari 3 for Windows. I don't have a mac to test it on. When I Goolge how to enable the JavaScript debugger for Safari it only gives me the instructions for turning it on on a mac, so if you could point me in the right direction to enabling it on my Windows machine that would be greatly appreciated.
 
First off, I am running Vista not XP. Second, I do have the "develop" menu with the "show error console". The only problem is, when I click it nothing happens. When I click "show web inspector" nothing happens. When I click "show network timeline" nothing happens. When I click "show snippet editor" it actually opens, but that doesn't really help me in any way shape or form in determining my problem. Did you try to use any of these features before you replied with your post trying to make me look like an idiot? I need to know how to enable these features, not just have the menu show up on the toolbar. Thank you.
 
Again, all that is showing is how to bring the "develop" menu up on the toolbar. I already have that. I want the stuff to actually work when I click on them.
 
Actually, here is the solution.
Step 1) Go to Edit->Preferences Click on the "advanced" tab. Click "Change settings" next to "Proxies". Click the "advanced" tab. Make sure the "Disable Script debugging (other)" is not checked. If it is, uncheck it. If it is not, proceed to step 2.
Step 2) Go to Edit->Preferences Click on the "advanced" tab. Unselect "Show Develop menu in menu bar". Close Safari.
Step 3) Go to Edit->Preferences Click on the "advanced" tab. Unselect "Show Develop menu in menu bar". Select "Show Develop menu in menu bar".

Now it should work. Simply doing "Go to preferences -> advanced settings -> disable / enable show develop menu." like the post you sent out will not work. I tried and tried, but until I unselected the "Disable script debugging" and then proceeded to follow his steps, with the addition of closing safari between disable and enable show develop menu it did not work. Even in your post you said you have to, and I quote "(i.e. you just need to disable it, quit safari, load safari, and re-enable it)." to get it to work. The link you sent me to had nothing about closing safari between the steps of disable and enable show develop menu. So just "pointing out that I found all of this with 2 very quick, very simple searches on Google." wouldn't really help anyone as the step of closing safari between disable and enable show develop menu is not listed in any of the links you provided. Also, not knowing Safari defaults to "Disable script debugging" being checked would also boggle some peoples minds and nowhere in any of your post or links in your posts is this addressed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top