javascript

What's proper jQuery plugin practice?

Don't be afraid to use any technical jargon or low-level explanations for things, please. I'm savvy enough with computer architecture and low-level programming languages to comprehend any optimizations or memory management techniques, as well as complex structures (classes, member variables, etc.) My primary focus of code is web-based a...

using google jQuery api

Hello, How can I replace following lines with links to the Google jQuery API? 1st line is already done. <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"></script> <script type="text/javascript" src="ca...

Android browser to Google Map app with multiple pins

I've got a website that runs in the android browser. And I'm able to launch the google maps app on the android, and passing it a pin using the geo: uri. No problem there. However, now I'm wanting to send a list of pins to the app, all from my website. I'm not pushing this out as an app, so I don't have the java intents, etc. And I ...

Replacing input fields from select choices (dropdown menu) with javascript

Three things: select box 1, input box, select box 2. Based on the selections in select box 1 (drop down list 1), I want either input box to be visible or select box 2 to be visible, but not both. Any help would be great :) I am populating the options in select box 2 based on the choice in select box 1, but sometimes the user's choice ...

change form field value with javascript

<script type="text/javascript"> function up(d,mul) { alert(d); form1.d.value=mul; } </script> up is a function name with which i am trying to update the value of field(field name=d). But its not working. plz somebody help me. ...

How do I call a jq function from vb.net code behind ?

I need to call this from the code behind if there is a certain value read in from a query string variable ie x as string = request.querysting("Var") if x = 'Hide" then function guestHide() { $(".panel").hide("slow"); } end if ...

Temporarily adjust height of element on hovering

I have a <h3> tag with limited height (100 px for example, position: absolute) and the text overflows it. What I would like to do is slide it down over to the height that is needed when the mouse is over it and back to original height (100px). I hope you understood what I mean I don't think it uses slidedown() function for that and I...

jQuery key code for command key

I have read http://stackoverflow.com/questions/302122/jquery-event-keypress-which-key-was-pressed and http://stackoverflow.com/questions/2445613/how-can-i-check-if-key-is-pressed-during-click-event-with-jquery However my question is if you can get the same key event for all browsers? Currently I know that Firefox gives the command butto...

What's the best way to build a user to user messaging feature in codeigniter?

e.g. like emailing but in a website.. I've googled and can't seem to find anything. ...

Calling an event listener in google maps v3 from a link

Hello, I'm trying to call the google.maps.event.addListener from a link. Here is the code I have so far: var divcc = '#badaba'; //click color var divhc = '#ffffce'; //hover color var divoc = '#FFF'; //original color var lastopenwin; var marker1; var marker2; //MAP----------...

access php array from javascript

I have the following code where I declare a php array variable and inside a function, I put some data into the array. I also display buttons mapped to each index of the array that will show the data in the php array for that index number. When testing on a browser, I don't get the right answer. I checked the page source, it had a code ...

How to reference a variable dynamically in javascript

I am trying to reference a variable dynamically in javascript The variable I am trying to call is amtgc1# (where # varies from 1-7) I am using a while statement to loop through, and the value of the counting variable in my while statement corresponds with the last digit of the variable I am trying to call. For Example: v...

ExtJS TreeLoader Issue

I'm not too familiar with ExtJS, but am working on a project that uses it. We are making use of a TreePanel with a TreeLoader that loads all node data from the server in one call. We have an event in which I need to access the attributes of every node in the tree. The way I am doing this is using the TreePanel's getNodeById method. The ...

could jquery live solve this problem? table links are bound to click, ajax refresh of rows ruins things

I have a table, that I loop through using jquery and modify the href of each link. IF someone pages through the table, the links are refreshed using ajax (page doesn't reload). Now all my links are not modified since the table has refreshed. Paging is done via a drop down list. Can jquery live help in some way to re-apply the modific...

Can the jQuery UI Datepicker take the good day in input altfield

I use datepicker and I disable Satudray,Sunday and Holidays but the input alfield take this days and I want to exclude Saturday, Sunday and Holydays , I need to take the next selectable days. For the code :link text ...

JavaScript false/null var inside if clause

Hello! What kind of variables will NOT pass through this: if(myVar){//code} Boolean false? NULL? Boolean false and NULL? Anything else? Thank you. ...

SlideShare Does not Load on Internet Explorer 8

Hello, I have made a simple embed of slideshare on my site. However, on Internet Explorer, it keeps saying "Loading" and nothing appears. However, in Firefox its almost instant. Please try here using internet explorer. Or is it just me? It makes use of Flash and Javascript. What can the problem be? Thanks all for any hellp ...

TINY MCE not saving inline styles properly

I have a wordpress plugin that has a textarea using tinyMCE tinyMCE.init({ mode : 'textareas', theme : 'advanced', theme_advanced_buttons1 : 'forecolor,seperator,bold,italic', theme_advanced_buttons2 : '', theme_advanced_buttons3 : '', elements : "editorContent", width : "365", height...

Automatically populate dates and times

What I am currently doing is setting up a calendar feature, but when the user selects the date, and then the TIME the event starts (ie startTime = 00:10:00am), that it will then pre-populate the second field (ie: endTime = 00:10:30am). So I thought maybe the best route would be when you select your time, jQuery would just select the NEX...

jQuery Event.Target Problem

I don´t know if I have forgotten how to do so or if it´s a bug, but I just can´t find the caller's reference using jQuery. I´m doing the following: $(document).ready(function() { $('#parent a.item').click(doSomething); }); function doSomething(e) { // Alerts for demostrational purposes only alert(e.target); alert(e.cu...