best way to retrieve data from DDBB
Hi 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
How to grab the ID of a selected DIV
Hi - I'm trying to use the "selectable" feature - and need to find the IDs of the DIVs which have been selected. When I run the code below, all I keep getting is the ID of the first DIV in the selectable DIV (ie. 2011-01-01). Thank you for any help, Mark <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Selectable - Serialize</title> <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.5.1.js"></script> <script src="../../ui/jquery.ui.core.js"></script>
SELECCIONAR UN ELEMENTO DE UNA PAGINA DENTRO DE OTRA PAGINA
HOLA, TENGO UN PEQUEÑO PROBLEMITA, TENGO UNA PAGINA PRINCIPAL (INDEX.PHP) EN LA QUE TENGO UN MENÚ Y UN DIV (DETALLE) CUANDO ELIJO UNA OPCIÓN DEL MENÚ CARGO EN ESTE DIV OTRA PAGINA (OTRAPAG.PHP) EN LA CUAL HAY UNA TABLA, ESTO LO HAGO CON AJAX, EL PROBLEMA ES QUE NECESITO SELECCIONAR ESTA TABLA EL CUAL EL ID ES (tablasel) CUANDO SE CARGUE OTRAPAG.PHP Y NO CUANDO CARGUE INDEX.PHP, YA INTENTE HACERLO POR APARTE Y ME FUNCIONA, PERO DENTRO DE INDEX.PHP NO ME FUNCIONA. ESTE ES EL CODIGO QUE USO PARA COMPROBAR
Getting " object has no method 'addclass'" error
Heya everybody, I'm still quite a newbie concerning jQuery, so I suppose the problem exists on my side and not in jQuery. I'm getting the error Uncaught TypeError: Object [object Object] has no method 'addclass' (anonymous function)/pre-alpha/:27 d.extend._Deferred.f.resolveWithjquery.min.js:16 d.d.extend.readyjquery.min.js:16 d.c.addEventListener.y I'll just post you all my script code and the affected html elements, it's not so much anyway and that way I think you might find my error most easily.
Selecting a class and a variable defined ID at the same time
I'm trying to select a class (.home) and an ID (#something) at the same time, normally I'd use: $(".home,#something") but in this instance, the ID is already stored in a variable called "newpage" - I'm trying the following: $(newpage,".home") but I'm having no luck, can someone help me with the correct syntax here? thanks. (note, selecting the id on it's own with just $(newpage) does work, so I know the issue isn't with my variable, it's just a matter getting both the class and the variable stored
How can i give the link to the anchor tag of flash?
Hello, I have typo3 extension "Smart FLV player" with that extension i have added two flash files.But now i want to give link to the anchor tag (which is below it ). To play video in same place as it is play now. How can i give the link to the anchor tag? Thanks in advance
New to JQ but not JS: Why does this work in every browser EXCEPT IE??
Hi, I have a simple effect on a list where I display a div when the user hovers over a list item. Here's my JQ: $(document).ready(function() { var switches = $('#switches > li'); var slides = $('#insideCenter > div'); switches.each(function(idx) { $(this).data('slide', slides.eq(idx)); }).hover( function() { switches.removeClass('active'); slides.removeClass('active'); $(this).addClass('active');
Download not completing
When I click on "Build custom Download", then on Theme "Smoothness" with version 1.8.12, then click on Download, the Download dialog appears on my Mac Mini. The progress bar goes up to 67.5 of 755kb then stops with "Decompression failed." How do I get the download to complete? It happens over and over with other themes, too. Thanks, Steve
iOS Safari Dropdown Menu Issues
On an iPad please go to http://arhab.org/index3.html. Select the 'Records==>Highest' menu item and notice that even after the new page content is displayed the menu list items are still displayed. To fix this I have tried changing focus after the selection. This didn't work. I also tried to have the javascript select another (invisible) button but this didn't work either. I also tried selecting (tapping) in an empty part of the screen but that didn't work either. The only thing that actually clears
jquery content replacement (html) - images don't load?
Hello everybody, This is my first post in the jQuery forum. I am quite a beginner, and I'm still figuring out how jQuery and javaScript works. I find it increasingly interesting, though. I have made a website, where everything stays (header, footer, menus) and only a <div> changes, in this <div> is the changing content (other html files, like if this was a iframe). I have used the method below to change the content of a <div> named "texto", it seems to work, but it doesn't load the images! only the
Newbie question about this url
Thought this was Flash but see it is not, looks great on Ipad. After further looking I see jQuery is used. Any help on breaking this down? RD
How can I select this?
So I have a script that grabs data from an xml doc, and for every result it makes this tree whole header title social body graph etc... clicking on the 'title' would show/hide the body. Up until today the 'social' would be was under 'body', but tooday i moved it to 'header'. Previously I would select the body of each element use .next(), but now it selects social...I was wondering if there is some selector that I can use that will target
Problem with my image gallery
Hello, So, I have an image gallery with small thumbnails. Basically, you can click on those thumbnails, and it shows a taller version of them ( simple image gallery). At start, the thumbnail images are in black and white. When I rollover the thumbnails with my mouse, it replaces them with a colorful version. The problem is when I click on them to see the taller image, the thumbnails return black and white. What should I do if I want the thumbnails to stay colorful when I click on them? I may not
UI theme downloads - not extractable / damaged
Hi, I have tried downloading from http://jqueryui.com/download/?themeParams=%3Fctl%3Dthemeroller a Theme (wanted UI darkness) but the download when attempting to extract with winrar or 7-zip just comes up with errors. So I tried all the available themes and all display the same error: "The Compressed (zipped) Folder .................. is invalid." using Windows Vista - Extract. "The archive is either in unknown format or damaged - Winrar." "Can not open file - 7-zip Please can you advise how
Help installing jquery plugin
Hi there, I just downloaded a new Magento template for which they have used a jquery plugin. I downloaded the zip file this evening, but I'm not sure where to insert the files in cpanel. I am newer than a newb, so I need some step by step instructions, as my website looks whacked. The slider images that are supposed to go across my homepage are all on top of each other on my site, and nothing is scrolling! My host updated to the latest version of jquery, but that did nothing. Any help would
How to Display An Image Based on Field Validation Results?
Good Afternoon, I have a lengthy form that users must complete. Inside the form, I want to place an image of a check mark if the field has been filled in, and an image of a red X if it's not. How would I structure the script to evaluate a given field and make either image visible based on the evaluation results? Thanks, Sid
syntax for an if statement inside an ajax data: option
My ajax data option in an Autocomplete works. The whole code section works. Then when I put an if statement into the data: option, I get a Firebug error saying - missing: after property id - and the page fails. I have tried a lot of changes in syntax - with no success. The code section is below. The intent is that when the statement is false, the last line should not execute. Document ready sets country so that the test is true, but I doubt the script executes that far. The jQuery seems to fail
Need a jquery iframe plugin with select menu
Hello! I need a jquery plugin like this using on this site: http://www.prestashopic.com/demo/?t=Clothing Theme Iframe with a select menu that load different pages in the iframe. Any ideas? Kind regards Peter
In just wanted to say thanks to all you jQuery Developers
When I wanted to create a Flash-like site without resorting to Flash jQuery was the perfect tool. I couldn't have done this without you all, thank you very much! http://pickinguptheghost.tonemilazzo.com/
JQuery with html generated by PHP
Hi I am rather new to JQuery and would like to use it with php. I ran into problems when my html is not static, I generate php forms on the fly using my php script and JQuery just doesn't seem to validate those forms. When put the same form in static html file JQuery works like a charm. What could be wrong? Does JQuery need a page to be static? Right after I load my php page firebug reports that $(document).ready(function() { is not a function and JQuery is not defined. I have loaded the necessary
Could some one help me to code this better
Hello! I'm using smoothScroll but I think my problem is a simple javascript one. If someone could teach me what I should do that would be great: $('.lodgingList a').smoothScroll({ scrollTarget: null, speed: 1000, offset: -10 }); The script is working the first time I click on a link in one of the lodgingLists but when I go back and click on a different link the scrollTarget doesn't seem to update. i.e. I click on 'House' the first time and the page smoothScrolls to the House anchor. I
How to use multiple jQuery instances
Im developing a site on WordPress - Bobakeye.com Currently there are two things on the frontpage that use jQuery; the main image slider and the logo (which fades in and out on hover). Anyway I want to use this http://jqueryui.com/demos/slider/#side-scroll without conflicting with the other jQuery stuff on the homepage. I know little about jQuey and require some help on getting it to work nicely with everything else please. Thanks
Can anyone give an old vb asp guy a bit of help trying to get his jquery on?
thanks for looking... believe me i have tried searching for an answer for this,,, but i guess i must now seek wisdom from the forum The line of code - $("#quote p").load("dbtester.asp?payor=" + $("#payorname").val()); doesn't like the selector payorname value having any spaces in it. If I sumbit with only one word in the input box then it works fine. Problem since i want to use this to write stings of info to db (not just one word at a time) :) For example: if I submit using the string "Bobby
Problem with creating a simple jquery slide show - .append() method is too slow!!
Hello, i have created a simple jquery slideshow on a webpage. In that webpage i use php and i have a relational db,too. I use append in order to show the images and i notice that append is too slow! I have a div which consists of "href" . Every href is a link to an image. Also, i use .append() The code is as follows: <html> <head><title>SImple Jquery slide show - TEST</title></head> <body> <div class="div_photos"> //photos are shown here, by using append
Why is it so hard, the tutorials do not help a noob like me.
I want to try jQuery but have had no luck understanding the tutorials here on the offical site or elsewhere. I do not do any code work so this is probably why, anyway. I have started a new HTML page and have uploaded that and a copy of jQuery.js to my website DIR. I want to copy an example of code that I can at least get something to do something. Can anyone past some simple code her so taht I can try it out. Peter
how to solve this jquery problem
Hi, I have page with jQuery click here to see code for this site is <script type="" src="http://code.jquery.com/jquery-1.5.js" ></script> <script type="text/javascript"> var delay = 4000; // you can change it var count = 5; // How much items to animate var showing = 3; //How much items to show at a time var i = 0; function move(i) { return function() { $('#feed'+i).remove().css('display', 'none').prependTo('#feeds'); } } function
jQuery contextMenu inside filetree residing inside a jQuery frame
Hi, I have the following design: index.html: <script language="javascript" src="/java_scripts/jqueryFileTree/jqueryFileTree.js"></script> <link href="/java_scripts/jqueryContextMenu/jquery.contextMenu.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="/java_scripts/jqueryContextMenu/jquery.contextMenu.js"></script> <script language="javascript" src="/java_scripts/main.js"></script> <frameset rows="20%, 5%, 25%, 5%, 20%, 25%" framespacing=no border="0" frameborder="0">
Jquery Autocomplete issue
i wrote a jquery code, which is autocompleting an input field. it getting results from a php file with json format. here is the code: <script> $(function() { function log( message ) { $( "<div/>" ).text( message ).prependTo( "#log" ); $( "#log" ).attr( "scrollTop", 0 ); } $( "#aramakutusu" ).autocomplete({ source: "search.php", minLength: 2, select: function( event, ui ) {} }); }); </script> this
simple callback question
I've checked the tutorial, can't see the answer: how to write a callback for a straight javascript function? as in loadBack(), function() { jQuery functions } loadBack() randomly loads an image approx 90kb.
Get and set URL parameters?
Hi, I need to know a way to get/set URL parameters with jQuery. Here is the flow between pages im having: page1) index.html page2) page2.html?img01name=house.jpg page3) page3.html?img02name=door.jpg what i want to have is: page1) index.html page2) page2.html?img01name=house.jpg page3) page3.html?img01name=house.jpg?img02name=door.jpg each page offers a choice to user and must add the choice in url. Actually im using forms with submit buttons to do it but i dont know how to keep parameters from previous
Problem Only in Chrome and Safari
Hello, I'm using the following code. It works fine on FF, IE, and Opera, but it fails in Safari and Chrome. Safari does nothing when the drop down is clicked, and the drop down is always one click behind in Chrome. Here's the JavaScript. $(document).ready(function(){ $('select#byCounty').click( function() { // Empty out the div if you already have gotten a listing $('div#CourtListings').empty();
How can you insert a variable into a string?
Hi, I am trying to change the css values of a html element the width, height, left and top values. I want them to be variable. So depending on which element is selected. It would change these values. For example: Here is the concept which will be explained in a function: function reposition(element){ get elements top and left value then get the width value then get height value. top minus height = new top position for div. wrap div around element now. } The div will be a handler for that element
form to subscript a newsletter then send email for confirmation issue
I try to create form to subscript a newsletter using plugins and the $.post() function ,but the URL outside the server http://rissc.jo/mailings/subscribe.php to send me an email if it receives the data but it doesn't work, here is the code <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>jQuery validation plug-in - main demo</title> <link rel="stylesheet" type="text/css" media="screen" href="css/screen.css" /> <script
content slides out and new comes in when menu link pressed. help.
Hallo there. Im a bit new to all this jQuery, but i really want to learn more about it, and get to know it. so i got this friend of mine who have made a design for me. the ideer with the design is that there is a large backgroundimage on 3040 px wide. and there is 3 pages. The function i want is the following. when a menu link is pressed the content box floats out of the window to the right, and the window rolls over to the content assigned with the link. how would i make this in the best ways? ive
Can I dynamically set the Z-index value?
http://www.gravitation.com/ When Someone click on two button sin center it loads the side pages. I want to add more pages. I know very little about JavaScript. But I learn this one and able to add more pages. But when clicking on other pages it will take ne page but under already excisting page. I want to add functionality so that when for example click on a link, one page slide to the left. Then I will click another page slide on th left. So here it either slides down above of the page or first
Mouse Over Right Side Menu with image slide on the left
Hi all, I need to know if there is an existing plugin which has menu items on the right and change the image according to mouse over event on the right side. Here is a basic demonstration : Thank you,
redirect from code behind
Hi! I have a code similar to the code in the example below: http://www.aspxcode.net/free-asp-net-sample-source-code.aspx?Topics=How%20to%20use%20Response.Redirect I want to get this to work in jQuery Mobile. When I put the headers in the code it stops redirecting: <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js"></script> <script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
Superfish Menu Font Question
I'll admit I'm no expert on CSS, but I thought I could figure out what style or class is controlling the size of the first submenu font in the standard Superfish menus, but I can't. The first set of menu selections looks to be about 1 point smaller than the subselections that appear when I hover over one of the first menu selections. Can anybody clear this up for me? Thanks. ---------- Rick
Best RSS / JQuery Option??
Hey Gang, I need a solid and reliable RSS parser for my web page. I saw jPage and it looked good except the RSS must be on the same domain - which seems to miss the point a bit. I need a high level of control in the display of content, and any help is much appreciated!
Need to write URL to HTML but it loses query string symbols...
I am using this in a java script block to write code to a page (for use as a new XML set: html += ' <segurl>' + vurl + '</segurl>'; But the printed URL var is deleting all needed characters in the string, leaving this: http://www.bctest.com/fullplayer.aspx#/ Show 70: New Hospitals Are Needed/BCTEST 04.10.11 - [1] New Featured Story/608459720001/898494604001/895805715001
Next Page