Get a Jumpstart with our Sample Apps
Results 1 to 2 of 2

Thread: passing div data from client to server

  1. #1
    Member
    Real Name
    Ian E Stuart
    Join Date
    Sep 2013
    Posts
    70

    Default passing div data from client to server

    I need to pass dynamic data from a jquery listener within script tags on an a5w page to an xbasic function. I have made a number of attempts to do so via the UX component embedded in the a5w page, but without success.

    Initially, I thought that I could write the data to a div in a static text element within the UX and then use an onChange action query to execute an ajax callback. However, the onChange event doesn't recognize the change within the div. Nor do I know how to get data within static text to the xBasic function (it's not in the e object).

    My other attempt was to use the jquery .html method and overwrite the text in a label element using it's ID, also triggering an onChange event to Ajax. It look something like this:

    Code:
    jQuery('#COMPONENTNAME.V.R1.LABLETEXT').html(data.node.text);
    But I can't get it to overwrite the default data in the label. Can anyone help me out? Is there a way to send a string from an a5w page straight to an xbasic function? I appreciate any help I can get.

  2. #2
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: passing div data from client to server

    I need to pass dynamic data from a jquery listener within script tags on an a5w page to an xbasic function
    this is answered in version 12 forum, you asked the same question.
    all the people pass on variables via intermediate a5w page so it is done routinely without employing the ux/dialog take a look at that answer. see if it helps or something else needs to be addressed.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

Similar Threads

  1. Solution for passing variables between client and server in ajax callback!
    By nlights in forum Application Server Version 11 - Web/Browser Applications
    Replies: 2
    Last Post: 01-28-2012, 05:53 PM
  2. Passing a var between a grid and a a5w page in a div
    By MichaelCarroll in forum Application Server Version 10 - Web/Browser Applications
    Replies: 4
    Last Post: 03-11-2011, 11:49 AM
  3. V8 field rules and client/server data?
    By confused in forum Alpha Five Version 7
    Replies: 1
    Last Post: 02-11-2007, 07:45 PM
  4. Passing Data
    By Phil Rolf in forum Web Application Server v6
    Replies: 18
    Last Post: 05-17-2005, 09:09 AM
  5. File-Server vs. Client/Server Tutorial
    By Marc King - A5solutions in forum Alpha Five Version 5
    Replies: 7
    Last Post: 12-21-2003, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •