jquery

jquery ui flyout menu question.

what i want to know is if there's any way i could transform this flyout menu: http://www.filamentgroup.com/examples/menus/flyout.php into a regular drop-down menu. more exactly i am trying to find a way to skip to click "flyout menu" so make the menu appear! the original menu and options are here: http://www.filamentgroup.com/lab/jquer...

Events not getting rendered with JSON feed.

I am trying to use a JSON feed to render events in fullCalendar. Here is the code. $('#calendar').fullCalendar({ editable : true, selectable : true, select : selectionMade, eventResize : eventsChanged, eventDrop : eventsChanged, selectable : tru...

Check URL for page name

I have some code that someone wants to put on their site. Here is the code i received from them: <script language="JavaScript" src="http://dm4.contactatonce.com/scripts/PopIn.js" type="text/javascript"></script> <script language="JavaScript" src="http://dm4.contactatonce.com/PopInGenerator.aspx?MerchantId=44542&amp;ProviderId=3176&amp;...

invalid argument for .css()

I'm using this code with jquery $(".tab").css({'background-color': '#f3f6ed', 'border': '4px solid rgba(0,0,0,0.1)', 'border-bottom': 'none'}); It's to change the style for a tab when I click on it. It works in browsers expect for explorer (stupid microsoft..) I get "invalid argument" Not sure how I can fix this. ...

Autocomplete jQueryUI appears below the lower edge of visible screen in IE

I have problem with Autocomplete, it works well in all browsers except for IE. I have it positioned inside <td> (and <tr> and <table> of course) that is inside <div> that has CSS like this: left: 10px; top: 400px; position: absolute; width: 350px; none of its parrent elements have position/width modified in any way.. Yet when I type...

Rendering fullcalendar in wkthmltopdf generated document in ruby on rails app

Calendar in our app is displayed using Fullcalendar plugin by arshaw Here it is: http://avatara.su/calendar There is a need to export this page to pdf. I always used PDFkit gem to do this, but with fullcalendar it doesn't work. It just renders an empty calendar grid, without rendered events. I tried to set 10 seconds for wkhtmltopdf t...

When OnResize doesn't notice you resized

Window -> IFRAME -> DIV I have a window, that has an iframe, that has a div. The div has the ability to scroll the content within but not having full control of the parent window, I have to decide how large the div needs to be from within the iframe. To do this, I have the following code JavaScript (please pardon the mix of jQuery/st...

jQuery Children Question

I am working on a script that will push each child element into a global array (for processing later on in my script) but for some reason its not actually pushing the element into the array. Code: var childElements=new Array(); function getChildren(elem){ $(elem).children().each(function(index, value){ c...

jQuery Plugin Options: Extend before or inside this.each block?

I'm looking at the Plugin Authoring article at http://docs.jquery.com/Plugins/Authoring and saw this example in the Defaults and Options section: $.fn.tooltip = function( options ) { var settings = { 'location' : 'top', 'background-color' : 'blue' }; return this.each(function() { // If options exist, lets merge t...

How can I get, manipulate and replace a text node using jQuery?

Here is my code: <li class="det_price"> <a href="/designer/customize/278258?dpid=1">Printing</a> from $10 </li> I have about fifteen chunks like this on any given page, and I'd like to take the text node (from $X), select X using a regular expression and set it to a numeric variable, then multiply it by a %, and append it to the ...

What is the proper way to toggle a switchClass in jQuery?

Consider: <div id="obj" class="foo"><!-- --></div> Expected: What I'd like is to keep switching between class "foo" and "bar" on each mouse click. Toggle class just seems to add and remove "bar", which isn't good enough. I can accomplish the effect I want with using a combination of .hasClass(), a ternary condition, and swi...

jQuery Confirm Dialog in ASP.NET Button OnClientClick

I have a TemplateField in a GridView in an UpdatePanel with a button called btnDelete. Rather than the standard OnClientClick="return confirm('Are you sure?')" I'd like to use jQuery Dialog. So far, I'm able to set the jQuery using btnDelete.Attributes["onclick"] and setting the jQuery Dialog code in the code-behind. However, it posts b...

Ajax or jQuery page reload with new data added to sql database

I'm totally new to ajax, but pretty good with PHP. I have a PHP page which currently refreshes every 2 minutes because it has to check for new data in the sql database. It's pretty annoying if you're using it and it keeps refreshing. The database is updated about 3 times a day, but what is shown on that page needs to be kept current with...

AJAX (jquery) + Tooltip

I use an tooltip. When I hide the native browser function for the tooltip function, (remote Attr title), after an Ajax update there is no content at all! How can I fix this? jQuery('.tooltip').each(function(){ $(this).data('title',$(this).attr('title')); $(this).removeAttr('title'); jQuery(this).hover(function() { too...

Need help with mouseOut effect

Ok so the following code produces a mask on a web page when hovering over a menu, my question is how do I edit this code to make the mask go away with mouseout event? As it sits now I have to click for the mask to go away. Any help is appreciated, thank you. <script> $(function() { $("#menuwrapper").mouseover(function() { ...

jQuery animate DIV using "position"

I want animate this: $("#movethis").position({ my: "center top", at: "center bottom", of: "#nav1" }); How do I do it? ... It's kind of an oddball one, and I can't find any examples. ///udpate: got a work around. Would still prefer to do the above but this is what I got: AnElement = dynamically selects correct element theMoverPo...

prettyPhoto remove the expanding image option

does anyone know how to remove this silly expand image option (http://screencast.com/t/Xclao9m84) on the prettyPhoto? This makes no sense why someone would want this and it's ruining my logic. Any help would be greatly appreciated. ...

Speed up selectors and method

Before I dive in to the jQuery/Sizzle source I thought i'd ask here about ways to speed the below method up. This is a standard "Check All" checkbox scenario. A header cell (<thead><tr><th>) has a checkbox that when checked checks all other checkboxes in it's table's tbody that are in the same column. This works: // We want to check/u...

ASP.NET MVC - Prevent Double Form Posting.

I have an ASP.NET MVC Form, but the data from it needs to be posted via jQuery (not ajax). It cannot be submitted using the normal model, because the Controller Action requires a JSON string, and the only way to get that string is to use jQuery's $.post method to turn the data into JSON, and then post it to the Controller. This works fi...

jquery form validation

using jQuery, what would be my best method to form validation. I will have your typical form with approx. 20 fields, drop downs, text fields, some radio buttons...etc... ive seen so many examples out there but am unsure which one is simplest and easy to implement. thx ...