Customizing inline style script generated
Hello there, I embedded an external script to my website which output is generated on button click. This script creates inline styles which I would like to customize. I thought of doing so by adding ... ... $('#submit').click(function() { initialize(); $('#divID div table').css("background-color", "#000"); } ... ... after the call of the function but it seems not to have any effect to the script generated inline styles. How can I control that? Many thanks in advance!
Validate - Displaying default error messages
Hi, I have, what I believe is, a simple question. I have a pretty large form with lots of validation and I am using the basic error placement: errorContainer: "#errorContainer", errorLabelContainer: "#errorContainer ul", wrapper: "li", errorClass: "invalid"All of my validations work great, except I have one validation that uses remote and needs to do a few things on response: , remote: { url: "_ajax/CheckTriggerPoints.cfm", type: "post", data: { facility_id: 1234, element_id: 24 }, success: function(data)
animating on hover textshadow with csshooks
hi, i'm having an issue with this piece of code - can't get it to work right. i'm using brandon aaron css hook for textshadow - thanks ! $(document).ready(function() { (function($) { var props = "Color X Y Blur".split(' '), support = $.support, rWhitespace = /\s/, div = document.createElement('div'), divStyle = div.style; support.textShadow = (divStyle.textShadow === ''); div = null; if ($.cssHooks && support.textShadow) { $.each(props, function(i, suffix) { var hook = 'textShadow' + suffix; $.cssHooks[hook]
Modifying a Plugin
I have just modified one of the pulgins to paginate the tables even after quick search. I want to know if that is already available in a plugin and how can i add it in the open source plugin if its not present. Please answer !!
jqPlot plot plugin hook click event to axis ticks
Hallo everybody, i want to extend the jqplot plugins such that the axis ticks are tranformed into hyperlinks and/or are hook with click events and to be able to catch the click event when it is triggered.. i have know idea on how to go about it. it could also any other javascript based charting framework or library. thanks
Html file not loading
Can anyone please tell me why the ShowMe.html file below is not loading up? Its in the same directory. Android platform. <p><a href="ShowMe.html" data-role="button" data-theme="b">Create a Wall</a></p>
google code in new partial
I am new to jquery ajax and I have a Symfony site working with partials loaded into divs from a .post. The partials inherit scripts from the main page layout as well as using local and inline scripts. I am using google jsapi in the main page header to fetch jquery. Most of the other scripts ATM are from datatables and its plugins and they all work fine. I have Google visualization working fine on initial pages and I had it working well in new partials as they were reloaded. This has gradually stopped
Facebox messes up other jQuery calls once used
Currently I am using Facebox to load an external page in a lightbox. The issue is I have other jQuery on the page and it works fine if I do not click on the facebox links but once I click the Facebox link and then click the other items they no longer work. Example Page The facebox jquery is used with the right column boxes called 'FOLIAGE', 'TRUNK', 'BASE', etc.... If you click it calls an external page like so: <a href="javascript: jQuery.facebox({ajax:'01.aspx?PopID=1">xxx</a> My other jQuery
.trigger("change") not working for some reason
Hi there, I have a textbox attached to an alert which I want to fire when the textbox value is changed i .e. while the user is typing. I attempted to use the .change() event handler unsuccessfully. After some searching I found that the .trigger("change") handler should work better but that too is not working. My coded example is quite simple: http://test-psi-alpha.appspot.com/jquery3 and consists of the following: HTML <label for="textbox1"> this should flash an alert when changed.</label>
getting next thumbnail
<ul> <li><a href="dog.jpg"><img src="dog_t.jpg" alt="dog" /></a></li> <li><a href="cat.jpg"><img src="cat_t.jpg" alt="cat" /></a></li> <li><a href="pig.jpg"><img src="pig_t.jpg" alt="pig" /></a></li> <li><a href="cow.jpg"><img src="cow_t.jpg" alt="cow" /></a></li> </ul>My jQuery is set up so that when I click on a thumbnail, a div opens up with the bigger image. I also want the thumbnail of the next image to appear in the same div. So if I click the cat, I want to see the large cat and the pig thumb.
.load() or .get not works in internet explorer 8
I'm developing a listing of workers, where the user can by department select through of tag select (html). But, my jQuery function not works in IE 8. function popularFuncDeptos(){ var sigla = $("#sel_depto").val(); if(sigla != "all"){ $("#listas").load('/ReconhecimentoNew/funcionario/depto/' +sigla+ ' #list_depto', function(){ $("#list_all").hide(); $("#list_depto").show(); }); } else {
Little bit of help with loops
Hey folks, was hoping someone could give me little hand with a loop function, I can't seem to get it right. I'm trying to do the following and I was wondering how it's done.Do I need to use the .each() function?: for(i=0; i<=10;i++) { $(document).ready(function(){ $(#myform").validate({ rules: { "field"+i: { required: true } //important bit } }); }); } How would I go about doing this in jQuery?
SOLVED - How to set revert on a draggable based on the droppable
I needed to have a draggable only revert if it was placed on a droppable of a certain class. I found the solution in an undocumented feature: revert can be a callback function. So I used: revert: function(droppable) { // Only revert position if dropped on another tile return ($(droppable).hasClass('tile')); }, I'm not sure why it's not documented, hopefully it's not going to be removed...
Thumbnails Out of Order on Reload of Page
Hi - I managed to integrate a gallery into my site using code provided here: Fresh Sliding Thumbnails Gallery with JQuery and PHP However, I noticed that even with their demo site (here), the thumbnails sometime come in out of order on the page when you hit the reload page button on the browser repeatedly. Based on what I read, the gallery relies on thumbs.php to create a JSON string with all the elements for the thumbnails. In the JavaScript (jquery.gallery.js), a buildThumbs() function gets the
On mousedown disable timer, Possible?
Hi i have a timer which is set to execute a function every 3 seconds, id like to know if it's possible to diable the timer function every time the mousBtn is held (mousedown), and on mouseup enable the timer again, and how can i do this? var timerFunc = setInterval( loadPos, 3000 ); /C
using the child selector, with class as a variable
What is the syntax for accessing the children of a class, where the class is a variable? The html structure is multiple divs like this: <div class="class1 class2 class3"> <p class="x"> lorem</p> <p class="y"> ipsum</p> <p class="z"> yadda</p> </div> The function does two color changes before going to 'display:none', function exIt(cl) { $(cl + ' > p').animate({color:"#ddd"}, 600, function() { $(cl + ' > p').delay(800).animate({color:"#333"}, 1600, function() { $(cl + ' > p').delay(800).hide();
Open Dialog - with current page
Hi there, my question if it´s posibly to dynamical open (without hardcode URL) the same page (current page) in a dialog? I need to have a link on every every page in a site (the link lives into a template) and I need to open this page again in a dialog box with the same content. Anyone know the trick?
a stange result after using getJson of Jquery
I found a stange result after using getJson of Jquery, pls see code as below: function checkCode(o) { var randomcode = ""; $.getJSON( "/Handler/GetCodeHandler.ashx", function (json) { $.each(json, function (i) { randomcode = json[i].code; }) }); //after getting the code through getJson, the result of below line is always true even if the two values are same... but if we add alert() before it, then it can work well, I am waitting for help:)
Updating MySQL table with a link click
I have a link that when I press it I want it to update a column in the MySQL table based on the ID of the "post". I don't want the URL to change and it needs to refresh back to the normal page. -S2
Display Either PDF or Image Problem Using Jquery.Media Plugin
I have a page that displays either a PDF or an Image based on what the user has uploaded. I use the following code to initialize the media: $(objMedia).media({width:900, height:500}); This works just fine when displaying a PDF but when it displays an image (jpg) it squashes the image down to fit the specified height. I tried to set the height to 0 and it works fine for displaying images but when it displays a PDF the document does not show up at all. Any insight would be greatly appreciated!
JQuery .html()
Hello All, I'm trying to highlight the pattern matched string in the text withing the pre tag. e.g. <div><pre> This is test html </pre></div> . The data within the pre tag is around 400KB. Also before highlighting I'm running the google prettify code as per my necessity. I'm using the code like following: highLtText = '[a-z]+' // any regular expression given by user in the input TextBox regEx = new RegExp('(' + highLtText + ')', "ig"); var preTextStr = $('pre').html(); changeTxt = preTextStr.replace(regEx,
'jQuery( html, [ ownerDocument ] ).find( selector )' always return [], why?
Hi, find method always return [], when calling with jQuery Object created by 'jQuery( html, [ ownerDocument ] )'. Is there any know bug? Here's the screenshot tested in jQuery 1.5.2 w/ Chrome 10 JS console.
.load problems in IE
Im trying to make a portfolio and on my index page I have a bunch of divs containing thumbnails. When you click on the div it changes its class from .thumb to .large and it replaces its content with a div from a separate html file with "large" in the name. This works in firefox, chrome, safari, and IE9 but not in any of the earlier versions of IE. Can anyone tell me why or please offer suggestions for me to try? I'm not a very good coder, so any help would be greatly appreciated. function divClicked(divId,
Please help with Jquery that controls RSS feeds.
I am using this plugin http://www.malsup.com/jquery/gfeed/ to display tabbed feeds. I am running into some issues with character count display limits and image display. I would like to display more text of the feed and show images if the feed has images in it. Would anybody have some advice? Thank you in advance. JP
jQuery UI Drag X,Y,Z coordinate on different browser or screen dimensions
Hello, Just wondering how to fix the problem of screen resolution changing or different browsers: I use jQuery UI Draggable window (and I store the X,Y,Z coordinates in the database) on one of the pages. However, when I try visiting the page on a different screen resolution, or sometimes a different browser, I find the box's position incorrect. Any thoughts on how this would best fixed the best? Thanks!
Getting Lightbox to work with the Fitted script
Hello everybody! Ok, so I'm more of a designer/marketing person with excellent skills in HTML/CSS, but anything more complicated than that (jquery, php, ruby, etc)...I can't write for nothing (been trying to learn it for 7 years...no luck). So anyway, I'm trying to get this lightbox to work on this portfolio site: http://whochrisporter.com/clients/HHM/ I usually get lightboxes working, but when its coupled with another script, I always get stuck. I'm using the Fitted jQuery script to make the whole
Change text from a span, if a div is visible and change it back if the div gets hidden (.text() and .slideToggle)
Hi, I have a span. If the span gets clicked, a text toggles. If the span gets clicked again, the text disappears. I want to change the text of the span, each time it is clicked. An Example: the span says: Show text - when I click it, the text appears, now the span shall "say" hide text. this is my actual code: jQuery(document).ready(function($) { $('.single_content').hide(); $('.css_hide').show(); $('.show_content').click(function(){ var $this = $(this); var $single_content
$(document).ready(); not working in Safari, Chrome, and Opera
I have the following code below working only in Firefox. $(document).ready(function() { alert("here"); });Is there any know bug. I am using version 1.5.2
Overriding Remote Validation
Hi, I have a scenario where I have an input form that is expecting numeric values. I am using remote validation to check that the value you entered is within a specific range (there is a reason I am not using the range validation). The remote script responds with true/false depending on whether the value is acceptable. If the value is not acceptable, then it displays the error message in the errorContainer as normal, however, I would like the user to be able to somehow bypass this validation if
app closes
Hello I've made an app with phonegap which opens a webpage. I make a php page with jquery mobile and upload it to the address which I have written in phonegap. When open my app on the phone sees it fine, but when I want to write something in a form field shut it down. Someone who knows what I'm doing wrong? regards Michael
Why doesn't post return data?
$('#dataForm').submit(function() { var formData = $(this).serialize(); $.post('inc/insert.php', formData, function(data) { if(data == 1){ alert(data); } }, 'html'); });I think I have gone off my rocker this morning. I am coding a simple form post and the post works fine. The PHP echoes a 1 on success. I am doing (a post) this in another form (using blur instead of submit) and it works flawlessly. In Firebug there are no response headers
Problems with CDATA
Hi everyone, I Have. var xml = "<data><![CDATA[Text]]></data>"; try 1. alert($(xml).text()). Result - empty. try 1. alert($(xml).html()). Result - <data><!--<![CDATA[Text]]>--></data> How to get the text?
issue with lightbox + easing plugin
Hello, I've a issue using jquery lightbox plugin and a menu with easing plugin. In my console i dont have any errors so i think that all my plugins installed works. The issue is about how its work. I need showing my menù with a jquery easing effect (like a carousel) and my gallery's immage with a lightbox effect but, when i have the both plugin activated all my sites work ONLY with the easing effect. My menù work well with the easing effect but also if i click for opening an immage on my gallery
Need a co-developer on a portion of my cookies plugin
Hello all, I wrote a javascript cookies library back in Nov of 2005 and released it as open source. I've maintained it over the years and added jQuery bindings to it a couple of years ago. While the cookie support works perfectly without jQuery, the bindings let you connect HTML elements to cookies and vice/versa. For example, a form input's value can be stored to cookie by `$( 'input#someInput' ).cookify();` or the input can be filled from cookie by `$( 'input#someInput' ).cookieFill();` This all
name="foo" format not working?
Hi, I'm trying to get a jQuery WYSIWYG editor working in a pre-built perl script. I can't find where the text-area code is built, but I've found the name of the field I want to edit (and the place where the common header stuff is printed). Here is what I have: <link rel="stylesheet" type="text/css" href="/cleditor/jquery.cleditor.css" /> <script type="text/javascript" src="/jquery.1.4.4.js"></script> <script type="text/javascript" src="/cleditor/jquery.cleditor.min.js"></script> <script
upgrading existing jquery
hoping someone will just know this, rather than having to adopt a suck it and see approach... I am doing some development on a site that is using "jQuery 1.2.6 - New Wave Javascript" The question is - will just swapping out to 1.5.1 (and 1.8.11) be likely to break anything..? pleesayno. there are all kinds of bits of libraries referenced all over, so I accept that something may break, but I don't know if anything drastic in the way documentbyid or anything was handled (I recall doing it differently
[cycle] Permalink to slide with custom hash value
At the moment I have it working with slide IDs, this is my code var index = 0, hash = window.location.hash; if (hash) { index = /\d+/.exec(hash)[0]; index = (parseInt(index) || 1) - 1; } var $container = $('#content').cycle( { fx: 'scrollLeft', startingSlide: index, speed: 500, timeout: 0, pager: '#nav', pagerAnchorBuilder: function(idx, slide) { return 'nav li:eq(' + idx + ') a'; },
Finding the correct selector
Hi All, So, from this: <div id="act112" class="actBlock"> <div class="actName">Name Stuff</div> <div class="actProgress">00%</div> <div class="actTogo">x days</div> </div> What do I use to get jQuery to select Name Stuff? I've tried #act112.actBlock.actName and #act112.actName and neither work. Apologies for this patently newbie question. Many thanks, - Aug
How To Do This -- [Image Effect] -- Through jQuery
Hi, I came across a site :- http://www.transtastic.com/se4/ and the way image zooming in and out I really liked and I'd like to know how it can be done through jQuery? Is there any jQuery plugin to do this? Regards Kylie
cant 'register' draggable/active DIV
HI, im trying to send the position of X amount of divs to a DB, my problem is, what i think, that the current div being dragged isn't registered. Im trying to alert alert( $(this).attr("id") ); but only receiving 'undefined' /C $(".flytt").draggable({ stop: function() { var data_pos = $(this).position(); $.post("save_pos.php", { id: $(this).attr("id"), x: Math.floor(data_pos.left), y: Math.floor(data_pos.top) }, function (data) { if (data == 1) { alert(
Next Page