Jump to content

[SOLVED] to use insert query in a javascript function?


chanchelkumar

Recommended Posts

Hi friends,

 

Please go through this,,,

 

Am doing a page in which the data's to be updated on every click.. After updation the control should back on the actionpage with updation, i have some values in the javascript function(these are the datas upadting in the database..)

 

please anyone help me to do an insert fuction in the javascript function!!!

 

I tried with ajax, but the control is getting lost after the first updation(first click)

 

please help me...

Link to comment
Share on other sites

this is a AJAX problem,

please explain what you mean by "controls get lost"

as a note i had a problem where i update the page including the textbox for seaching.. and the javascript wouldn't run after the first run..

 

my solution was to have 2 div's

#1 controls (the search textbox)

#2 results (with a form) (no javascript linked to these)

 

then the ajax would only update the results, thus not lossing the link from JS to Search (text box)

 

hope this helps

Link to comment
Share on other sites

Thanks Friends,

 

    I tried that one , but it's not helping me from the current situation... The problem is am having six div's which is dynametically generated from the database, am trying with windoo for drag and drop div

 

I tried it's updation in another page but it's not coming back to the current page,

My div's are dynamically generated, so i want to save the every action (on mouseclick)....

 

am getting the style values(these are values i want to save...) in javascript.. i want to update it to the database from this javascript function.

 

by this i think i can overcome this situation....

 

and this is my idea....

 

if you got it please recommend me a remedy...

or please suggest me any other option...

 

thanks,

 

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.