jquery

uploadify, IE load button, but don't send

Hi, i have uploadify script in my php site. With FF all everything good, but in IE(7, 8) don't work. I click browse button and load image, show in page: http://www.ajaxrain.com/rainImage/1april0901.jpg But when I push send link, nothing happens. Why? How fix? My send button code: <a href="javascript:$('#fileInput').uploadifyUplo...

JavaScript lib reference variables in core script?

We have an HTML page with some global JavaScript variables. We have some utility functions that manipulate these variables. Can you move these util functions to a separate JavaScript file and include the file using the <script> tag? Wasn't sure if the functions in the external file could get/set the global variables that are defined i...

How to DRY up my jQuery code and make it more readable/maintanable?

I'm starting to do a lot of jQuery programming. I'm finding that my code is becoming a little hard to maintain and is not all that readable. My javascript is being included on every page of our web application, even though it is only used on one page. This has the benefits of having the javascript cached before loading the page, but I'm ...

Imageswitch with divs

I want to use flip out Imageswitch function: http://www.hieu.co.uk/imageswitch/imageswitchsample/trynow.htm on a div. This isn't possible because Imageswitch is for images not for div's? Does somebody know an alternative for Imageswitch where this is automatically (switch in 5 seconds) possible? ...

Jquery Sliding panel plugin

I've been looking for a jquery plugin for the last couple hours. What I'm looking for is a panel that stays on screen all the time off to the side of my full story pages. Similar to the follow me sharing tabs on mashable.com and for a similar purpose. I simply want the tweet digg this and share on facebook buttons on my page to stay on ...

How can I translate my jquery to javascript?

I have $('#hidden-data').find('#' + $(this).attr('id')).html(currdata); var hiddata = $('#hidden-data').find('#' + $(this).attr('id')).html(); I want to translate this to javascript but my brain is melted. Please help ;p ...

Dynamically-added elements not wrapping

I need to dynamically add elements to a page, but unfortunately when I do it using the jquery .append() method, the elements seem to act differently from other elements already on the page, despite the same CSS. I created an example page that reproduces the problem. on the top is a list (ul with a bunch of li's ) with statically defi...

debug: jquery fails silently, how to prevent it

how to force jquery to exit WITH error instead of failing silently (in firebug console i see nothing and i don't know, what was wrong) ...

remove attribute of html tag

Is it possible to remove the attribute of the first html tag? So, this: <div style="display: none; ">aaa</div> becomes <div>aaa</div> from the following: <div style="display: none; ">aaa</div> <a href="#" style="display: none; ">(bbb)</a> <span style="display: none; ">ccc</span>​ Many thanks in advance. ...

jQuery / asp.net-mvc: How can I display Hierarchical Data using IHierarchicalEnumerable?

I have an asp.net backend that creates Hierarchical Data based on IHierarchicalEnumerable. This was used for custom Hierarchical Data Controls in ASP.NET WebForms for sitemaps etc. We are now using ASP.NET MVC and am looking to use the same Hierarchical Data Collection with jQuery / Json etc. How can I display Hierarchical Data using ...

Fade text too long inside HTML element

So my questions is similar to this: http://stackoverflow.com/questions/3695435/crop-text-too-long-inside-div What I don't want to do is have a hard end to the text (chopping off whatever text overflows). The desired output would not include an ellipses (...) but would "fade" away. So if I had something like: <div class="text">This i...

Which is the best 3-column 100% width pure CSS layout framework?

Hi guys, We're starting new project and we need 100% width (100% height is a bonus :)), 3 column, pure CSS layout for business RIA. We checked out YAML, YUI, Blueprint and couple of others but seems that none offers or guarantees 100% compatibility with all major browsers. Which one is the best for this purpose from your experience? ...

getJSON and invalid label

I am trying to get json data from a url. Url is working ok in FF. I am trying code like this $.getJSON("http://testsite.com/1234/?callback=?", function(data){ //here i am getting invalid label error** } ); When i am trying without callback=? i am getting empty data $.getJSON("http://testsite.com/1234/", function(data){...

jQuery colorbox loading local content in all except Chrome

Hi, I am using Colorbox to load some content from an external (but local) file. The content appears in everything except Google Chrome. The linke with the event handler attached: <div id="content"> <p><a id="modal" href="popup.html" target="_blank">link to popup</a></p> </div> This is the jQuery: $(document).ready...

Working with multi-column sortable Items in jQuery

Here's my dilemma - I have a two-column list of elements (styled <div>s) that I need to make sortable. With elements that live in one or the other column, this is easy - I just set up two columns, place my elements where they need to be initially, mark them as "sortable," and let jQuery do its magic. However, I have two elements in the...

'Namespace' is undefined when trying to call asmx method from jQuery

I'm attempting to use jQuery to access a method in an asmx webservice. When I try to execute the below jquery call, I get an error 'MyNameSpace' is undefined. jquery call to webservice: MyNameSpace.MyWebService.MyMethod(parameter, function (e) { alert('Success') }, function (e) { alert('Failure') }); scriptmanager: <asp:ScriptMa...

Does chaining in jQuery work with manipulation and effect methods?

I'm trying to do the following method chain: $(somehtml).insertAfter("#someelement").fadeIn('slow'); What I would like to happen is for the somehtml to be added but with the fadeIn effect. However, this is not happening at all in my browser, it's just adding the contents as if the fadeIn wasn't even there. Am I doing the chaining in...

Client side includes vs server side includes?

We have an HTML page with multiple div blocks. We want to separate these div's into multiple files and then combine them all together into a single file - is it best to use server side includes (JSP in our case) or client side includes? Note that we're using JQuery - not sure if JQuery has a clever way to do the includes. ...

How to import CKEditor trhrough jQuery Ajax?

Hello, I'm making a simple data grid aplication and when I click a row in a table, I want to be able to import a textarea box with CKEditor on it. Now when I import the .php page, nothing shows up. As for every other html part, that was imported, the already running JS on the page isn't refering to the imported html. For the other cod...

IE6/7/8 Out of Memory?

I was doing some cross browser testing on certain piece of functionality today, and ran across a rather nifty little gem. In IE8: Out of memory at line: 99 In IE7: Out of memory at line: 100 In IE6: Stack overflow at line: 101 From what I've been able to dig up, most of the time these messages start appearing, it's an issue with havi...