I'm completely new to jQuery and Javascript but I have extensive (10+ years) with Flash and Actionscript.
I want to create a dyanmic tree menu, but I wonder what is the best way to get the data from a MySql database.
Honestly, compared to AS3, the implementation of XML seems very primitive... In As3 you simply move around the xml as if those were objects using E4X. This way: MyXML.myNode.myChild[3].text()
So I wonder, what is the best way to work with data from the DDBB? Is there a better way of using XML with jQuery? Maybe JSON?
I am new to jquery and i have no freaking idea about jquery. One of the requirement is to use Jquery to datastore and dataretrieval so on my aspx page, a user enters a comment and clicks on "Add" button.When user clicks on Add button, I wan to add comments to database. Once data is added to db, I also want to retrieve same data, user name and current datetime as a dataset and show it on the page. How can I achieve this? I am creating a webservice which accepts "comments" as parameter and stores into database.
We are trying to develop an Engineering application using PHP, Javascript with Informix as the back-end.
Is it possible to retrieve data using Javascript but by accessing the Database. Say somebody enters part_no, than using Javascript is it possible to connect to the part master and retrieve the division and desc information?
I am not allowed to use the PHP because this will require the user to insert the part number on the first page (user input page) and then retrieve the information using PHP and display the info on the second page (processing page).
I will need this to be done on the same page. That means the info will need to be retrieved instantly (on the fly).
I think of building a javascript array for the part master table using PHP but finally decided not to as the table is a huge table (contains more than 1000000 records).
I'm trying to use AJAX to load user's profile through a drop-down list on selected user. There are 3 seperate files:
1) view_info.php 2) selectuser.js 3) getuser.php
I tested and found that the value $q did pass from view_info -> selectuser.js -> getuser.php, and value changes correctly as i select different user from the drop-down list. Problem is, it simply can't fetch data from my database using the value $q. I tried debugging it for 3 hours already and is totally out of idea whats wrong with the script. i'm new to AJAX, this is my first script..
I am having question on how to retrieve data from web page.
There are 'Yes' , 'No' checkbox for different questions on the web page. There are around 50 such questions.
I have to retreive the values submitted by the user by clicking on either Yes or No checkboxes. Then save this data on the server. I have to use Javascript for this.
Since I am new to Javascript I am not getting idea how to implement it.
I'm currently working on a personal site and I'm using a very interesting javascript library written by Jacob from nihilogic.dk. This library allows me to extract some EXIF-data from pictures. My site will serve as a picture site where I will post pictures from my future world trip (one year travel from north america to south america).
My idea is to take pictures with a camera with GPS functionality so all the pictures will be tagged (in the exif) with a latitude and longitude value. The objective is to post these pictures on my site when I'm on tour and dynamically link them to a google map so visitors and myself can see the exact location where the picture was taken.
The following libraries offered by nihilogic: (binaryajax.js and exif.js) [URL] are able to read EXIF data such as latitude and longitude from the picture.
Since I'm trying to work with jquery I also tried the jquery version which does also read exif data. However the jquery version of the script doesn't read latitude and longitude tags.You can find this script here:jquery.exif.js
My question is it possible to find a solution that will allow reading out the longitude and latitude data with the jquery script? Is it possible to tell me how to enable this data in jquery?
Here's a test sample of my site using this script. click on the little globe icon under the first picture to see google maps and EXIF data.
i have a web service at this url http:[url]....i use hotel search file with HotelSearch method and method will retrieve xml file contains the matched data. the varialbe that i made post with it is named : HotelData
the data of the variable is a string file that contains an xml data like this
i am currently working on aptana studio nokia wrt plugin to develop a mobile widget where i need to retrieve data from database. i've created a java servlet in eclipse to connect and execute query to the ms sql server 2005 database. in aptana, i am using js file and html file, i'm able to connect to the servlet to retrieve and process the data (split the data) into an array and display the retrieved value (array) on screen. but now i need to put the retrieved value (array) into a drop down list for selection, how could i do that?
for the drop down list, i cannot define the list, it need to be able to read from the servlet as the database is updated, it need to reflect.
have the following code that I thought I could retrieve json_encoded data but I'm just getting "undefined".The json_encoded string from the php array:{"table":null,"id":"2","itemCode":"1003","itemDesc":"Item infor for1003","itemWholesale":"1.99"}]I thought I could "grab" the name of each in the array and output the dataaccordingly. So on success of the ajax post (which does return data) I triedalert(itemData.itemCode); This is on line 10 in the below code snippet. Using this method returns "undefined" and NOT the data 1003 as I would expect.
jQuery Code: $('#search_results tr').live('click', function() { var $itemrow = $(this).closest('tr');
I would like to know how I can retrieve html data with jQuery. With my current project I have all pages in 1 html file (jQuery mobile). Every page has his own ID. Page 1 has id="question_1", and the next one is id="question_2".
Now I would like to retrieve this ID and add +1 to the question. So if you press a buton it will always go to the next page.
So I have a div with id "navigation" which contains an <ul>, and the <ul> has several <li> items.What I want to do is to animate the <li> items as i rollover them.My question is , how can I only animate the current <li> I rollover, because right now when I rollover one, all <li> items animate.
I am simply trying to retreive the value of a label. Here is the label: <asp:Label ID="Label3" runat="server" Text="I love ASNA"></asp:Label>
Here is what I am trying to do with JQUERY: See LINE 1 and LINE 2 below. It comes back with UNDEFINED/ < asp:Content ContentPlaceHolderID="PageScriptPH" runat="server" > <script type="text/javascript"> var ATTDTA_CLICK_ACTION_CODE = 'X'; var ATTDTA_DOUBLE_CLICK_ACTION_CODE = 'X'; wingsHelpers.subfile.assignDoubleClickAction( "ATTDTA", ATTDTA_DOUBLE_CLICK_ACTION_CODE); var p = $("#Label3").val(); <======== LINE 1 alert(p);<======== LINE 2 </script> </asp:Content>
JQuery 1.4. I cannot get this line to return anything but null: alert($(this).closest("div.cr").html());Any ideas on why not? I have tried using parents("div.cr:first") with no luck as well.
Here is my sample code. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]"> <html xmlns ="[URL]"> <head > <meta http-equiv ="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript" src="jquery-1.4.min.js" ></script> <script type="text/javascript"> $(function(){ $(".mcf").live('submit',function(){ alert($(this).closest("div.cr").html()); //alert($(".mcf").closest(".cr").html()); alert($("div.cr").html()); //alert($(this).html()); return false; }); }); .....
I have a jQuery object upon which I am setting the 'top' value using the .css() method. The value is to Float accuracy:
$('#example').css('top', 13.857759); Setting the value works fine, and the result in the DOM is: <div id="example" style="top: 13.857759px;">...</div>
However, when I go to retrieve the value using the .css() method, the value is returned as an integer: alert($('#example').css('top')) // alerts "13px" Is this an intentional quirk of jQuery, or considered to be a bug?
I am new to jQuery and I would like to process a matrix operationusing PHP.The front-end code is done bellow, its a 3x3 table. the user couldselect/deselect individual cells of the table and click the buttonthat calls a PHP script that will run some function. How do I know if a cell is selected? Is there is is_selectedfunction in jQuery? Would it be possible to send a 3x3 array to my PHP script?Please provide me with any info on thisMTMy current test code.
I'm not sure this is the right group to post to, I've just found this group.I notice the old alt.dhtml group has been murdered, overwhelmed by spam. On my page: [URL] I am trying to get an element's style.top, style.marginTop, and backgroundColor. I can successfully do getElementById( ) on the element, but I can't get any settings from the element. If you bring up the page, all of this stuff is supposed to display in a header-like line just under the small banner. I can see that the doc's scrollTop has been retrieved OK (it wiggles if you move the vertical scroll bar) but all the other stuff is MIA. What am I doing wrong that I can't get this element's style properties? In the source, the function 'scroll(),' which is trying to read these properties, is at line 52.
<div id = "container"></div> <div id = 'containerItemTmplt' class = "ui-widget-content"> <div class='contentHdr' onclick="test(this)" /> </div>
i then use jquery to clone 'containerItemTmplt' and add it to 'container':
var copiedElem = $('#containerItemTmplt').clone(true). .attr('id', 'paneI1') .appendTo('#container');
This works great and i confirm using I.E. 9's developer's tool utility that the element was indeed added with the correct id as a child of 'container'.
However in my test method, when i inspect the element that was copied, the id attribute is an empty string:
function test(elem) { var parentItem= $(elem).closest('div')[0]; alert(parentItem.id); //<--this displays an empty string despite }
Is there a jQuery way for me to retrieve the placeholder attribute of a form input element? I've tried the obvious:
alert ( $ (
[Code]....
but it returns undefined in both firefox and chrome for some reason! All other attributes are displayed fine with the above code... is this a bug in jQuery? using the latest version. Is there a workaround?
I need to have someone give me a hint or show me an example where I can retrieve all the values of the options of a dropdown list, also I've created a dropdown list with Jquery and it looks good in all browsers EXCEPT IE7???? I thought that jquery was cross-browser compatible???