[jQuery] css on dynamic table row
i create tatble row dynamic using append after calling web service. It create ok. After create table i try to add css to the td but it doesn't seem to work. any idea how to resolve this. the syntax is correct. I notice when i view source, the all the row are not there. <table id="tbid"> [row append dynamiccly] </table>
IE Problem with changing div height
Hi, I created a div which can be minimized and expanded. In normal condition the div is as high as the content. If you need space you can collapse it to just the height of the box bar for the title. To make this work I just insert a extra class at the most outer div of this box. The CSS declaration looks like this: .hiddenW .jq-infopanel-showHide { height: 0!important; overflow: hidden; padding: 0 10px!important; } .jq-infopanel-showHide { height: 100%; } This works fine in FF. But IE
[jQuery] jQuery.ajax custom parameter to success callback function
Hello friends, I am trying to validate a form using jQuery and PHP. The actual filtering is done by a PHP class which receives the data asynchronously from jQuery and if it finds the form field data invalid, returns an error. So, I am serializing the form and then split it into array. I'm looping through the array and passing each value to the jQuery.ajax function. I would need to return an error to the ID hook if something is wrong and I'm stuck in creating it. PHP successfully returns the information
logo slide
Hi, I'm new to this forum and jquery. I just made a simple logo slider which needs to be animated. check it here: test Now I want to animate these logos (left or right) infinitely maybe with animate() function, could anybody help me? I write the basic code here: Html: <div id="content" align="center"> <a href="" id="left" class="arrow"></a> <div id="logos"></div> <a href="" id="right" class="arrow"></a> </div> Css: #content {width:960px;height:63px;margin: 300px 15px;text-align:left;clear:both;}
[jQuery] $.jgrid is undefined with jqgrid plugin
Error: $.jgrid is undefined Source file: http://localhost/test/js/jquery.jqGrid.min.js I don't understand why I get this error. http://trirand.com/jqgrid/jqgrid.html Cheers
[jQuery] onLoading and onComplete Event Methods in JQuery
Hi All, I am new to Jquery , i implemented the Ajax request in my web application using prototype.js but because of some issues i need to replace prototype.js with jquery so i gone through the jquery documentation but i did not found any replacement for the onLoading of prototype.js My Current code implementation in prototype.js is pars += 'postId=' + postId; pars += '&comment=' + comment; pars += '&postauthor=' + postauthor; var myAjax = new Ajax.Request( url, { method: 'post', parameters: pars,
[jq-tipsy]newly added element wont show tips
i know there is live() event to make newly added element to be able to run a function, but that only apply to some mouse event. i use this tipsy plugin to show tips everytime on an image. my image can be changed by uploading new image. but the new image wont have the tips showing created by the tipsy(). $("#photo").tipsy(); anyone can help me?
JSF and JQuery
Hello, i'm stuck with this problem: I have a href generated by JSF and it puts in onclick some content that sends me to other page. Example: <a id="_id1:rptcrontabTable:136:remove" onclick="return oamSubmitForm('_id1','_id1:rptcrontabTable:136:remove',null,[['jobId','136']]);" href="#"> I want to use JQuery like this: $(function() { $("a[id $= ':remove']").click(function(event) { if(!confirm('#{bun.confirm}: #{bun.remove}')) event.preventDefault(); }); }); But this doesn't
[jQuery] Get this in ajax
I'm using a ajax function but wish to return $(this) inside the success function but can't seem to get it to work, can some one tell me if its possible. If you look inside the success function i'm trying to get $(this) from the click function. $('.del').live('click', function() { var str = $(this).serialize() + '&js=true'; $.ajax({ url: $(this).attr('action'), data: str, beforeSend: function() { }, success: function(data){ console.log($(this));
[jQuery] Are the OAuth Consumer Token and Secret assigned to a specific Server IP address
Hello Gurus- quick question, are the Consumer Token and Secret assigned to a specific Server IP address? I am currently switching my servers/hosts to a different IP address, but with same domain name. It seems like Oauth returns a "Failed to validate oauth signature and token" when using the same consumer tokens and secrets on the new IP addy. If this is what is causing my problem, how do I remedy? Thanks for for confirming one way or the other... comments welcome.
[jQuery] jQuery Cycle pager with images
Hi, I am fairly new to both jWuery and jQuery Cycle, but I have managed to set-up my slideshow using images as the pagers. The problem is that I want to be able to indicate which slide is currently being displayed by toggling the pager image to unique one when it is active. Essentially what I want to do is achieve the same sort of effect as the .activeSlide attribute, but using images instead of CSS. Relevant code below. <script type="text/javascript"> $(function() { $('#topleft').cycle({ fx: 'fade',
[jQuery] $.post callback broken in safari in new window.open()
hello I'm opening a new window with window.open() In the new window a file is loaded with the following post data function: function ajaxPost(url,data){ $.post(url,data, function(data){ alert(data) }); , "json"); } If I call this function form within the new window everything is fine - If I call it from the opener window the callback function is broken - only in safari - ff works fine. any work around for this? 1000 thanks
[jQuery] Superfish vertical menu, sub-menu item overlap problem
In an ideal Superfish vertical menu setup, you match the width of the first <ul> with the offset of the second, so the menu appears directly to the right of the primary navigation. I'm looking to have that over- lap a little, and it's working fine in FF. In IE6 and IE7 the first submenu item appears on top of its parent, but each subsequent submenu item is layered beneath the primary navigation. I've tried playing with different positioning and z-index attributes, and maybe that's the solution, but
[jQuery] Superfish how to add mouseup event
hi there, does anyone knows how can i add an onmouseup event script for the drop down menu? i want to provide an alternative clicking convenient for the user, other than clicking on the anchor to access the menu items. I want to make the acess is possible even if the user clicks at the background of the drop down menu. Thanks
Stimulating tab key
I'm trying to write a code which stimulated the function of TAB key. This is the code I wrote so far. $('#scrollPane').keydown(function(event){ var key = event.charCode ? event.charCode : event.keyCode; if(key==9){ event.target.focus(); return false; } }); What I need to do was obtaining the next target which will be focused, and focusing it manually. But when using event.target it contains the currently focused element. So my code just focuses to the same place without moving to
[jQuery] Should I keep away from other plugin dependencies?
Hello everyone, I always enter here to deal with technical issues, but today it`s a issue that become philosophical. I wish to make a plugin that needs to use others plugins, but what about the good principle to keep the codebase clean? One of the best things in jQuery is that you keep the core simple, optimized selectors and you insert what you need on demand... With the jqswfupload, I saw a nice jQuery plugin to managing warning and success messages in a nice way, and I found the perfect user experience
[jQuery] JQuery Scrollbar value
I can't figure out how to check with jquery how deep a user has scrolled into a page. Suppose you got a webpage with 3000px in height but the actual viewport is just 768px high. So the user has to scroll down to see the rest of the page. How do i get the current vertical scroll value of the page. So for instance if the user is at the bottom of the page the scroll value should then be 2232px since the viewport's top is at this position. So the function i'm looking for should give me the top offset
[jQuery] function gt() is not working for me
When try to refine a jquery set with last elements using the function gt() it just not work. Here is an example, it was tested in firefox 3.5 and jquery 1.3.2. I had placed 3 empty fields, with jQuery I asign an "x" value for all of them. Then I try to asign a "y" for the last two fields using the gt() function, but it doesn't work. (Note: to test it by you copy and paste the code in an html file, you need to have the jquery-1.3.2.js in the same folder) <code><pre> <!DOCTYPE html PUBLIC "-//W3C//DTD
How to retreive Excel Documents via jQuery's $.ajax()?
Hi there! I've written a GUI which represents data from a DB. Each row has a table-head with its own "search" field in there, so you can filter the displayed data. To realize this, I use $.ajax() and I post the serialized data from these inputs. I retrieve a JSON object to update the current view. This works perfectly, but now, I also want to send the "current view" as an Excel Spreadsheet. In order to realize this, I use the PEAR Spreadsheet class and I send the Excel Document instead of the json_encoded
using a string for selector
Hello. Thanks in advance for any help! I can use $('p#T1') to select the <p> tag with an id of 'T1'. How would I select that <p> tag if 'T1' were a string? In other words, I'm passing 'T1' into the following function: function displayitems (myItem) { // in this case myItem is 'T1' // I then need to 'select' the <p> tag with the 'T1' (myItem) id. } Thanks again for any help.
find the selected value and text of multiple select box
Hi everyone,I've been stuck with this problem for sometime now, I just don't seem to find a way to fix it.I'd really appreciate it if someone could help me. I have multiple select boxes on 1 page, I need to get the text of the select boxes(which is the qty of an item) and the value of the selectboxes (the price of the item) and the item description which is in a span tag with a class descriptionColor, and when someone chooses something from the first select box and sth from the second and so on,I
Animate Function not working properly in IE.
Hey all, Temp site can be seen at: http://www.hooplah.net/dev/slider/index2.html. This works perfectly in FF. So to see how it should operate, open the page in FF. To see how it should not operate, open in IE (preferably IE7 as there is no PNG fix applied yet for IE6). Most animations are just done using a div wrapper (sliderWrapper) whos margin is animated to where it needs to be. Inside the div wrapper are 3 divs that are the 3 sections that need to be displayed (#sliderDivStory, #sliderDivDemo,
Dropdown change not working
$(function(){ $("#country").change( function (eventObject) { if ($("#country").val() == "233") { $('#state').show(); } else{ $('#state').hide(); } }); $('#state').change(function(e){ if ($("#state").val() == "1") { alert('hi'); } }); }); For some reason, the functionality does not work. It should display the state drop-down
[jQuery] documentation of sugar methods
I noticed what I consider to be a bug in the documentation, but rather than quietly fix it, I'm posting to this group because I think it might be part of a larger issue. The bug is in the documentation of $.fn.serialize() and $.fn.serializeArray(). serialize(), unbeknownst to me until I looked at the source of the method, is a sugar method. All it does is call $.param() on the result of serializeArray(). The docs for serialize() say nothing about param() nor serializeArray(). http://docs.jquery.com/Ajax/serialize
Problem with click after use jqzoom
Hello I made this cart http://www.miguelmanchego.com/pages/min ... egory&id=2 You can add products to cart and delete from cart using this code: $('.itemDelete').live("click",function () { x1 = $(this).attr("id"); var broken=x1.split("-"); cual=broken[1]; itemAction="delete"; $.ajax({ type: "POST", url: "includes/minicart.php", data: "itemId="+cual+"&itemAction="+itemAction, success: function(data){ $('#miniCart').html(data);
getting open doors effect to on form submit
hey all, trying out jquery for first time. im trying to get a door opening effect when a person logs into my website. you can check out http://www.theorgnetproject.org to see what i mean. ive got a week something up right now. im unsure the best way to have my form submit and aslo run the jquery function that makes my door open? now ive got it rigged so the php page that processes the form just waits 2 secs before starting- is there a better way than than that? also the set up right now only seems
[jQuery] html() does unexpected escaping:
In the following example: the src attribute is escaped but not the class attribute. I wouldn't expect any escaping. $('<div><img src="{p1}" class="{p2}"/></div>').html())
[jQuery] jquery cycle with multiple image
Hi hope all are fine :) like this demo http://malsup.com/jquery/cycle/int2.html , i need make cycle image slide-show. there will be 3 image, not 1 image, like the demo. i tried do it myself. but my whole 3 image , moving :( . I need to move one image , not whole 3 image. like this demo, when previous or next button clicked , on http://flowplayer.org/tools/demos/scrollable/visual.htm i need this my Jquery cycle, pls help! saikat. Bangladesh.
[jQuery] tablesorterpager and columnmanager not playing well together
Hi all, Like the subject says, I've got a few plug-ins not cooperating. My page has a table that displays data and when allowing my user these two options, the columnmanager's selected columns don't maintain across pages. What happens is either an extra row of data is shown with no header or an extra header is shown with no data depending on whether the column is selected to be 'shown' or 'hidden'. Anyone else try these plug-ins together? I'm also using tablesorter and the cookie plug-ins. Thanks!
[jQuery] jQuery.sheet v0.5, any thoughts, jQuery praise
Hey Guys, I wanted to get your thoughts on jQuery.sheet v0.5 - <a href="http:// jqueryplugins.weebly.com/uploads/3/1/3/8/313814/ jquery.sheet.html">Demo</a> - and as well the themeRoller integration. I've spent a bunch of time refining the code for use with most web browsers. There probably isn't an aspect of the plugin that wasn't effected. Also, I wanted to praise the jQuery team for the new support object. I had previously used the browser object a bit for refining code. At first I really thought
[jQuery] Get append() result
If I add a row to a table in the following manner, how can I get a reference to the added row? var row = "<tr><td>...</td></tr>"; var newrow; newrow = $('#docs tbody').append(row); With the above code new row references the tbody and not the tr.
[jQuery] Fading Out a Flash Object - Strange Behavior
I am trying to fade out a Flash embed object and fade in regular Html. For some reason the callback of the fadeout method gets fired multiple times, before the fade out has finished. The result is that the Html gets appended multiple times in the callback function and it blinks an extra time. This doesn't happen when I try fading regular Html. Is the fadeout function not meant to work with flash? Html: <a id="HideFlash" href="#">Hide Flash</a> <div id="FlashContainer" > <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
[jQuery] Superfish z-index problem with googlemap in IE
Hi All I am using the superfish menu on a page that also has a google map on it. It work fine in FF but the menu will display below the google map in IE. I have already change the z-index:999 and position:absolute, but the result remains same for IE. Thanks in advance for your help
[jQuery] Listnav initial display of no items?
Thank you for this little treasure! Is there a way to do it so that when listnav initially appears on the page, no items are shown? In other words, is there a way to just have the alphabetized index show with no initial display of anything else?
[jQuery] dropdown menu does not drop1
Hi! I installed superfish on this site www.itipensa.com. The institutions is suppossed to be a drop down menu, but it just doesn't drop. It looks like it gets stuck in somewhere and i just am not able to figure what is wrong. Please help me fix it. Thanks in advavnce.
[jQuery] [validate] scrolling above the error field to include the label
Hi I have my labels on top of the fields and when an invalid field is found, validate moves the focus to the first invalid field, but when it does that the user can't see the label. How can I make it scroll up just a tiny bit to include the label? Also, wondering if anyone has implemented scrolling in general so that the page scrolls smoothly up to the error location rather than the jump you get with a focus change to an off-screen element. Thanks. --Chris Hiester
[jQuery] problems with async ajax call in ie
Dear all, Because IE behaves differently to FF I have to implement a ‘mother function’ that only returns a value after an ajax call finished. Basically this works fine in FF: HTML: <p id="error_message_step1" style="color:red;"> Script: $(document).ajaxStart(function() { $.blockUI({ message: 'hello', overlayCSS: { backgroundColor: 'green'} }); }) $(document).ajaxStop(function() { $.unblockUI(); }) function step1_validator() { ... $.ajax({ url: "../bla", type: "POST", dataType: "text", data: { userName:
[jQuery] jCarousel External Control as Pagination
Hi there, I have a couple of problems using jCarousel, and was hoping someone here might lead me to a solution. First of all, can I change the way the External Control function works? I am guessing that I "only" need to edit the javascript file, but having little knowledge of it, I chose not to. What I want to do, is use the External Controls as a pagination, so rather than being a navigation for each image, I would like it to navigate from one page of visible images, to another. More or less, I
[jQuery] On mouse events / style switch
Hi Is it possible to do an 'on click' event that changes a css selector, then an 'off click' that switches it back? I am working on a touch screen app and need to replicate a css hover state. If anyone can point me towards an example or a tutorial, I 'd really appreciate it. Thanks! A
[jQuery] Newbie Question
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=us-ascii" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.6001.18813"></HEAD> <BODY> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=493575514-04082009>I have a standard php page with some jquery going on its working fine.</SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=493575514-04082009></SPAN></FONT> </DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN
Next Page