Jump to content

check if a web link exists before it is added the mysql


jasonc

Recommended Posts

not sure where that error can from but i dont get it now.

 

to put you in the picture...

 

i use the include method to bring the page together.

 

i thought i'd create a new test by adding the testAjax file inside my admin and creating a dummy menu item for this page so now the page is viewed via www.site.com?menuitem=test

 

but now the code does not work.  i have placed the file checkurl.php in both the root and the admin folder.

 

the javascript file is in the index.php file using the <script ..  method to include it, and must be included as i get the popup box from the alert command i placed in the code.

 

i have also checked the logs on the server and this is what i found...

 

'checkurl.php' not found or unable to stat,

 

 

Link to comment
Share on other sites

hi  just wondered if you know if a variable in one javascript .js file would mess up the same named variable in another .js file both loaded in the same index.php file ?

 

this is the only thing i can think of that may have caused the script to fail.

Link to comment
Share on other sites

the code work as far as the last line which i added to show a pop up alert box, but thats it.

 

the span div should show if the url is ok to continue or if it exists.

 

i have set up a test login if you could check it out to see if you can spot anythiung i have missed or not said.

 

would you be able to help?  if so i'll send you a private message with details

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.