NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Javascript Problems


Joined: 29 May 2008
Posts: 1
Reply with quote
Hi

I've been evaluating the software as I believed it would be useful for a site I have been asked to maintain. The site is written in PHP with heavy usage of javascript.

The site is built on one page (index.php) and imports all other pages, options, variables etc. - Awful design but I have to live with it. The site is huge so no chance of a re-write.

Many of the links use javascript:void(0) as the href whilst passing a variable as a parameter using onclick for example: onclick="document.getElementById('show_all').value=1;forms[0].submit();"

As the site is all built in one page it simply goes back to the page it was on with the extra variable when in a normal browser.

However this simply doesnt work in PHPed. It does not know how to handle this and just stays where it is without re-loading the page with the new variable.

Another one i noticed is a popup window using javascript:void(0) that onclick calls a function to open a new mini window.
The window opens but it takes me back to the login page which looks as if my session has expired as it is asking me to log into the site again on the initial page.

Is there any plans to make this javascript functionality work?

I can post detailed links if you wish.

Thanks
View user's profileFind all posts by billabangSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
However this simply doesnt work in PHPed. It does not know how to handle this

Exactly. PhpED does not run JavaScript and is not responsible for the results. If you run your jscript code in the built-in web browser, it's browser's responsibility to run your code. Also, you may want to check your antispyware, antivirus and firewall software. Often they strip off javascript althogether or replace some certain calls with another. To see the results just open browser's View Source.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] Javascript Problems
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic