How to run a function each time the db is modified.
Hello, I created a Comment System in php, but i have a question! I want that every time that have a new comment it appear in the page with a fadeIn effect, without refresh. Note: Sorry if my english is not legible.
how to submit a this form using jquery and json ?
hi guys please could you help do this i tried to read about jquery , ajax , json but i just got really lost so i am asking for help to guide me to the right way and thank you so much. what i want to do is this : take this from in html <form method="GET" action="https://exemple.com/api/work.php"> <input type="hidden" name="method" value="link"/> <input type="text" name="params[login]" value="ready" /> </br><input type="text" name="params[pass]" value="download"/></br> <input type="text" size="80"
Not sure what's wrong with this but...
$(document).ready(function(){ $('#search_name').keyup(function(){ search_name = $(this).val(); $("#names li:contains('" + search_name + "')").addClass('highlight'); }); }); Is there something I'm missing or not seeing in this? All I'm trying to do is to highlight a li when I type in the name in a text field.
Need jquery slideshow to stop after 2 loops
I'm fairly new to using jquery and have developed a slideshow for a client. He wants the slideshow to only loop through 2 times and then stop on the final slide. I would appreciate help from anyone! URL: http://www.abbeyroaddjs.com/ny/index.shtml Here is the code I have so far: <script type="text/javascript"> //Main jQuery script. Slider(); function Slider() { $(".slider #1").show('fade',1000); $(".slider #1").delay(3000).hide("fade", { direction: "left" }, 1000); var sc =
Z-Index change on click
I am having a problem getting my photoviewer to change photos when a link is clicked (live site http://ericnaff.com/web2/index-FILL-IN.html). I've looked everywhere for a solution and got nothing. Here's my HTML, then CSS, then my jQuery. I got the links to work but when you re-click, it won't change the image. Example- I click on a link and the photo changes to the right photo. If I try to go back to a photo by clicking, it doesn't work. <body> <div id="imageWindow"> <div class="imagePane firstPic"></div><!--
jquery insert text
hi, i have a h1 and select, i wanna know how can i insert the option in select in h1 tag. like if a choose james, so jquery take the text james end rewrite in <h1> so the new <h1> will be james and will dissapear Choose Staff on the Right <h1> Choose Staff on the Right </h1> <select> <option> Choose Staff Name</option> <option> james</option> <option> alex</option> </select>
Adding a delay/timeout to dropdown menu
Hi everyone, I'm new to this forum! The code below is working fine for me, however I would like to add a delay / timeout to it.. Everytime I move my mouse off the element it jumps away really fast.. <script type="text/javascript"> // Executes the function when DOM will be loaded fully $(document).ready(function () { // hover property will help us set the events for mouse enter and mouse leave $('.menu li').hover( // When mouse enters the element function () { //Fade in the navigation submenu $('ul',
Problem pausing all animation on Mouseover
Hi Everyone, OK so I am trying to pause ALL the slide animations on a page. At the moment I have three rows of boxes all using the same slider script, sharing the same class name. What I am trying to do is pause all 3 of those animations when one of them is moused over. I am using the responsive slides script from http://responsive-slides.viljamis.com/ This is how I have the HTML marked up (please ignore the $smarty syntax): <section class="greenBox"> <ul class="rslides slider1"> <li><img src="{$smarty.const.SITEURL}/images/vane/celebs/hamilton.jpg"
appendTo(document.body) ???
Hi Friends, This is Suresh. I am Joined today this forum. Anybody Please explain this and explain " (document.body) " also???
jquery and ajax
Hi everyone, J have problem with my first script, J want to do main page with menu (say index) with included jquery, fckeditor, script with tabs, and J have script which add something to <div id=content></div> Its look like this: $("#pages-wrapper").delegate("a","dblclick", function(e) { var href = $(this).attr('href'); $('#conte').load(href); return false; }); Its loading page called "main", in this page J have fckeditor and my tabs and this is not working.. From FireBug J have
IE Problem - No style?
Hi I am experiencing problems with my footer styling, but only in IE (many versions). Other browsers display the footer no problem? The link is at http://www.homersparadise.com/homerbg/ Click on any of the list items on the first page and the next page appears, but the footer is all distorted. Any quick ideas anyone please? Malky
how to create a function to read just the CMS pages in jQuery??
how to create a function to read just the CMS pages in jQuery??
Probelm With Jquery
Hi guys i'm mark and i started writing in jquery. I'm totally noob on this argument but i starting study on book,tutorial on internet etc. I have this problem i create a modal to delete user into my personal db but the delete link appear only in the first row of the table of user,i try everything but i can't find the right way :( i hope somebody can tell me how is the best way to resolve my problem... Thank you for taking the time to me. greetings mark
Add a class "active" to menu item when clicked. Have it shut off when another menu item is clicked.
No matter what I try I cannot manage to get the li in my single page portfolio to switch/append the class "active" when I click it. I tried using a couple suggestions that I found in the forum but none of them seem to work. Can somebody help me out?? Here's the url to my portfolio: http://alexseabrook.com/test.html I thought that maybe this would work but no matter how many different ways I tried to implement it, it just didn't cooperate (I am a newbie): <script> $(document).ready($(function () {
Load page source into div
Hi. I am trying to figure out how I can grab the source code of a specfic URL and pop it into a div. I have successfully managed to get the current pages source by using: var source = $('HTML').html(); $('#test').text(source); I did think I could use .load() but have not been able to find a solution. Can anyone show me how this can achieved?
Slide-out/in textboxes by mouseover
I want to make a slide-out/in effect with text boxes using Jquery at my Wordpress site, but I desperately need help, please! In the first position I want to show a small box (perhaps with a button with a single word). In the second position ( by mouse-over) a textbox should slide out containing a fair amount of text (ex. 100 words). I have heard that some kind of hover-toggle effect should be possible using Jquery. Is that true? I submit a link to my website: http://hedningen.dk/teatertelegrammet/.
problem with $().mouseover
Its my first simple JQUERY experience. I try to implement something like this Here is my HTML code: <html> <head> <script type="text/javascript" src="jquery-1.7.1.min.js"></script> <script type="text/javascript" src="jquery-1.7.1.js"></script> <script type="text/javascript" src="myJava.js"></script> </head> <body> <div id="main-menu"> <a href="#">link</a> </div> </body> </html> And here is "myJava.js" code
Color newbie problem
Hi there My friend and i recently are working on a project so here is the deal I want to pick a color from the pallete ( jquerry ) and i want to make a div in wich the color will be described after picking it example here http://www.pruszynski.com.pl/dach_twoich_marzen/dach_pl.html You pick the colour ( left menu ) and after it colorized the "object"- value of the color WITH DESCRIPTION is displayed bellow the image For me the most important thing is the description of the colour HOW DO I MAKE IT
adavanced level css
i am trying to style my red button , a separate image with label on it and grey stripes i am attaching a a screenshot https://docs.google.com/open?id=0B3IBJKENGE7RS1lwZzhYbTNRbkk is it possible to achieve using css http://jsfiddle.net/rxdRa/1/ providing my code below
Combine Multiple Ajax Call Responses Using Deferred Objects in Backbone?
How can I load in the responses for each request? What I have below doesn't work. I think only .then will display success and error callbacks but I'm not sure how to pass in the actual responses. How can I do this? $.when(CountryCollection.deferred, StatesCollection.deferred) .then(function (resp1, resp2) { console.log(resp1); console.log(resp2); //this callback will be fired once all ajax calls have finished. });
Jquery Datepicker date range
Good nights from Santo Domingo Please can you tell me how can I restring "#to" to start the next date of the selected in "#from" ?, for example: if I select January 11 in #From, in #to start from January 12 and not from January 11 again as this code : <script> $(function() { $( "#from" ).datepicker({ defaultDate: "+1w", changeMonth: true, numberOfMonths: 3, onClose: function( selectedDate ) { $( "#to" ).datepicker(
.html() method performance question on multiple inserts
If I have a div container that has an id, and within that container there is multiple span tags that all have ids. Would it be faster to replace the inner html of the div container or replace the inner html of the three span tags individually? Option 1 would be 1 call to innerhtml and option 2 would be 3 separate calls to innerhtml but with less data at a time. I am downloading data from the server via ajax, and I want to know which is the best method. Having to update just the div containers
calling a function w/ parameters inside an appended onFocus...
hints are displayed onFocus, and emptied onBlur, which works. However, when I add the second set of field inputs, they don't display the hints. I've narrowed the problem to the function call in the onFocus line: $('.inner').append('<input type="text" name="fieldName[]" value="Field Name" class="long" onFocus="'+desc(showDesc("fieldName"))+'"/> '); using onFocus="desc(showDesc("fieldName"));" throws a "missing ) line 1 row 14" error Take a look for yourself: http://jsfiddle.net/visevo/nMwMw/ Any ideas?
prepend and append
Below is the :success portion of an AJAX request. The problem is I want to affix the tblEnd string (</table> ) to the end of the #response div, after the last tr, and it is not doing that. I got the tblHdr ( <table>) string added above the first <tr> but for some reason I can't get the closing </table> tag added to the end of the #response div? Is the prob the selector? thanks, success: function(data) { var checkbx ='<input type="checkbox" class="checkall">'; var tblHdr = '<table class="table">';
Validating all form fields and know all is valid before submitting
I normally do my validation onsubmit but this time I was going to use jquery to speed things up. I added the validation to each input onblur when loading and it works fine but I don't know how to determine if all inputs are valid before submitting when doing it this way. I know HTML 5 supports this but I'm not looking to use HTML5 fully. There has to be a better way to do this or is there a way to make this work with what I have? Thanks $('.input').blur(function() { val = $(this).val();
Is this an IE bug or am I doing smtg wrong?
Hi everyone I am devolipng a site and I was using firefox and everything was ok. Now I tried the site with Chrome and IE. Chrome is ok too but IE show some weird behaviour. demo002.desentaki.com this is the site. Try hovering on the leaves with small images on. Even if I hold mouse still it hovers in and out. This is the code I use for hover effect: jQuery(".link1").hover( function() { jQuery(".bg_image_link1").show(); jQuery(".bubble-left-1").fadeIn(100);
Calling server side method from asp.net page
I'm trying to use jQuery to call a server side method in ASP.Net 2.0, but I keep getting my error message that I set in the error function. Can someone show me where I can fix my code to get the server side method to be called and get the success message? -----------------HTML image that calls popup----------------- <img id="imgDisciplineComments" src="assets/images/edit_icon.gif" class="editIcon handCursor" style="display: none;" alt="Add program/discipline outcome comments" /> -----------------HTML
jQuery Hover Flickering Issue
Hi guys, I am trying to use jQuery for hovering on a "li" tag - but for some reason it fires the mouseleave event as soon as I hover on to the item. I am trying it the following way .hover(function () { $.MessageBox("This is a Message"); }, function () { $.MessageBox.close(); });MessageBox is my function to show a popup window. I have three "li" tags in the web page. whenever I hover on it - it starts firing both the event at the same time. Any ideas ?
load vars from database
Hi, I need to make a jquery app for school, now i got stuck with loading some variables out of the database for google maps. Its a table where fuelpump info is stored. But i need to get the coordinates (stored too) out of the database for each pump to find them on google maps. Im trying to for 2 weeks now and i hope that someone knows how to do it. Thanks for helping me Below is a big part of the code: <script> var db; //------------------ Opdracht 2a - Zoek de fout in deze code $(document).ready(function()
Round numbers that are after comma
Hi everyone, i need a little help. Is there any solution how to round numbers that are after comma. Example: Number 4.89 to convert to 4.90. I really need that. I have used: Math.round(value).toFixed(2) - but this returns me the value "5", i need "4.9". Regards Edon Bajrami
Resizing DIV according to the content size with the most content
Hello, I'm know javascript but I'm not so familiar with jQuery. I'm using Joomla and I have a component tabs&sliders. I have two tabs with different content length. I don't show the complete content but there is a scroll on the right side of the tabs. Now I like to add a button at the top next to the tabs "expand" div according to the vertical content size in the tab. Is that possible? How does "jQuery" know the content size in the tab? A second thing is of course, if the user switch to another tab,
C# click vs jQuery or JavaScript click event
Which event will fire first...the jQuery click event or the C#(or other codebehind language) click event, if i bind both of them to a button???
CHANGE THE STANDARD FONT SIZE IN BLOGS
Hi all folks, Can anyone tell me how can I change (and set) the standard font size in blogs of my members using jquery? Thanks here is the Blog page
getting a data id from button click event with on()
I have had to amend some code to grab a data-id from a button click as the button click event now uses on() due to copies of the same button being added dynamically so I now have: $(document).on("click", ".like", function (evt) { evt.preventDefault(); LikeComment($(this).data("cid")); }); My problem with this is that $(this).data("cid") is now undefined. How can I get at this using the new code above?
Why is this not working
I could not understand why is this not working. I wanted a new raw to be added whenever the last row is clicked. exmple is here
How to get ajax message when status is 0?
Hi! I know that ajax means asynchronous http and xml, but if we can get synchronous and non-xml data, I want get non-http data. The problem is that if data are not http they have no httpstatus (http status is 0) what means I get error message instead of success. Is there any way to disable http status checking? Everything works fine with pure JS XMLHttpRequest. Moreover it is not possible to set http status for non-http response in QWebView: http://doc.qt.digia.com/qt/qnetworkrequest.html#Attribute-enum
update div tag
Hi, I'm really hoping there's some Rails developers perusing this forum. I did ask this question on the Google Rails Talk group last week but I received no answer, and I've been stuck for more than a week... I'm trying to update a div on a page with an Ajax call and it doesn't work. If I call jquery directly from the browser (no Ajax), the div does get updated. However, if I call it through a remote call, the div remains unchanged. A remote call in Rails makes an Ajax call back to the server, which
Problem for dynamically created button
Hi All....................... I need a help In my application, I want to add some data and for that, I have to create a row dynamically. I can add multiple such type of rows in the applcation. For this, I am using JQuery and the code used is... // ajax call to get allowances $("#addAllow").click(function() { var paycomp = $('#Paycomp').val(); alert("=== VAL PAYCOMP ==== "+paycomp); if(paycomp == null || paycomp == "zz"){ alert("SELECT A PAYCOMP ");
How keep table header positions fixed with vertical scroll and horizontal scroll in a html page
How could keep the table headr position fixed, when I scroll the html with horizontal or vertical scroll? Thanks a lot. Example Page: http://para.maximintegrated.com/en/search.mvp?fam=stepdn&270=Internal%20Pwr.%20FETs&tree=powersupplies My Failed Case
find anchor and addclass to specific link
hi guys.. i have a litte question... is there a way the search for a name "1-LINK" and find in the next ul > li > a "#1-LINK" and addClass "active" (but only in the first ul after finding "1-LINK") and this for all 4 boxes: a name "1-LINK" and find in the next ul > li > a "#1-LINK" and addClass "active" a name "2-LINK" and find in the next ul > li > a "#2-LINK" and addClass "active" a name "3-LINK" and find in the next ul > li > a "#3-LINK" and addClass "active" a name "4-LINK" and find in the next
Next Page