I'm working on a Drupal 6 module where I use jquery (and more specifically, the $.ajax method) to retrieve a RSS feed from Yahoo's weather API. I decided against using the JFeed library because I need access to the elements with "yweather" prefix (and I couldn't find a way of accessing them via JFeed). I decided to use the $.ajax method ...
I'm nearing the end of my internship this summer, and I've developed a tool for my mentors that involves primarily PHP, MySQL, JavaScript (jQuery). Does anyone have any templates or suggestions or links on creating an easy to read document showing the code structure of the program and the relationships between the files?
These guys are...
I'm working with MVC recently and I've encountered a strange problem while trying to send request to my controller using ajax. I'm using JQuery (version 1.3.2) that came directly with MVC, I'm trying to send such ajax request:
$.post("Home/OpenTrade", { price: 1.5 }, function() { }, "json");
I've also tried parseFloat("1.5") instead o...
Hello. I want to use HTML and PHP for 9 or more images upload. The problem is that I don't want 9 upload fields because it looks bad. Does anybody have any suggestions ? Maybe examples ?
Thanks.
...
Hey Guys, building a site and I've got two questions for you. The site is hosted here for the time being: http://wesbos.com/tf/shutterflow/?cat=5 . I have two questions:1. Currently the slideshow rotates divs with the class of .slide that holds the image. inside it, a class of .cover overlays it with the data/ a semi-transparent backgro...
Hi,
Is it possible to get a reference to the textbox that the customvalidator is 'attached' to in javascript?
I want to place a red border around the texbox if it fails validation.
...
Hi
I am wondering how do I disable javascript when using selenium so I can test server side validation.
I found this article but I don't know what to really do. Like I make this javascript file then what?
http://thom.org.uk/2006/03/12/disabling-javascript-from-selenium/
...
I'm trying to apply a class to a link only if the current page equals that link.
I find the current page with:
var pathname = window.location.pathname.split("/")[window.location.pathname.split("/").length - 1];
This grabs the url of the page and saves whatever is after the last /, which in the case of my page is 'index.html'.
Now, ...
I have the following line of code:
<li>
<label for="q2-1" onclick="setActive(this.id, 'question2-1-input');" id="q2-1-label"><input disabled="disabled" type="checkbox" name="question2" id="question2-1-input" value="1" />Opinions</label>
</li>
which calls:
function setActive(questionID, questionIDinput)
{
alert('setActive');
...
I know this is probably a simple question, but I'm attempting a tweak in a plugin & js is not my expertise and I got stumped on how to do the following:
I have an array that can contain a number of values ($fruit) depending on what a user has entered. I want to add another variable to the array that isn't determined by manual input.
I...
Hi All,
I am working on a Palm-Pre App.
For some Custom Functionality, I am creating a Command Menu in my App which has 3 options at the maximum. The options are labels and doesn't contain any images.
The issue is that when I add spaces in the Labels, the menu got messed-up. The separators become thick and the alignment is also distur...
Javascript code is
function jsCheck() {
var msg = '';
//Move email checker to first line of javascript validation
if (document.form1.email.value.indexOf(".") <= 3 && document.form1.email.value.indexOf("@") <= 2){ msg = msg + 'Valid Email Address\n'; }
if (document.form1.name.value == ""){ msg = msg + 'Full Name\n'; }
if (document.form...
hi guys,
I have a datalist and in itemdatabound iam calling javascript and passing one argument.But iam not getting that argument in js.
<asp:Button ID="btnUpload" runat="server" cssClass="button1" Text="Upload" >
<asp:DataList ID="dlView" runat="server" >
<ItemTemplate>
<tr>
...
http://sourceforge.net/projects/jisirc/ is exactly what I need, only problem is it has multiple ActiveX dependencies and that will not do. Does anyone know of any similar projects which are more portable?
...
Hi,
If I load an HTML from file:// and in the HTML there's an AJAX 'GET' request to a relative URL, it means the URL is pointing to a file and the file is loaded.
Can I have a similar behavior for 'PUT'? Meaning overwrite the file's content with the AJAX data?
I need this so I can easily debug scripts without the need to setup an HT...
I have a website that provides a price comparison for students textbooks. I wrote a ruby script to go class by class and grab all the textbook information and store it in a database that the website can query for book information. The problem is that the bookstore keeps changing the books needed for each class so I need to figure out a w...
I am having a form in which a button is there on click of that button i am calling a javascript function in which i am displaying like 3.. 2.. 1 kind of effect then i am returning true.
But after showing 3 only return true is getting executed and the form is getting submitted.
How to stop form submitting before running the script.
Edi...
I want to stop the browser request, when user clicks on any button from UI, like stop button on browser. I want to do it through javascript.
...
Dear All,
Can anyone show me how to change (clear) the value of InputFromTextBox SharePoint with full rich text enabled, I can't reach to the object by its id hence it puts the text in a seperate IFRAME, gives it an ID [Control ID + iframe], when I access the IFRAME I can't reach the inner tag hence innerhtml property = ""
I'm turning ...
how do you call a server-side button (onclick event) in javascript in
ASP.net (VB.net or C#)
...