I tried to call my helloworld by just including javascript inside webform but when running it page is blank on both chrome and firefox. In firefox error is
"XML Parsing Error: no element found"
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="jquery01._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//...
I'm using ASP.NET MVC. So I have a form on my page:
<form id="MyForm" name="MyForm" method="post" action="http://www.mysite.com">
<input id="hdnType" name="hdnType" type="hidden" />
</form>
I'm using the jQuery submit action to do some validation before the form is posted. I also need to make an AJAX call to set "hdnType" based...
We are using jqGrid search - for a given field, how can you specify a combo box with specific search values instead of a text box?
...
Hi guys,
I can't seem to get the following functionality to work under Chrome and Opera (latest versions on Windows XP).
The code is:
$.getScript('/js/modules/'+module+'.js', function() {
setTimeout('window.'+module+'_init()', 800);
});
Everything seems to work fine, the script loads, init function exists (a few debug alerts with...
If our website's backend is expose via apis (secured and everything) , is it a good idea to develop the website only in JQuery?
Like one commenter said, JQuery will be calling the API's.
Edit again: The entire idea behind this is to achieve scaleability. For example, the same api's could then be used on Mobile or something else.
...
I've gotten some help here for this piece of code, but on my end, when I click the button, it's simply dumping empty li elements to the intended target.
<script type="text/javascript">
$('.add-button').click(function() {
$('<li />', {text: $('#select-put:selected').text() })
.appendTo('#publisher-results ul');
...
i have this jquery code which works fine, but the image at the end is not changing to the src i specified here:
jquery:
$(document).ready( function() {
$("a.vote_up").click(function(){
//get the id
var the_id = $(this).attr('id');
//the main ajax request
$.ajax( {
type: "POST",
...
I have a jquery UI datePicker in my page. I have a text box on which the date is displayed. The code is:
$("#cal").datepicker({
minDate: new Date(),
defaultDate: new Date(),
buttonImage:
'/images/calendar.gif',
constrainInput: false,
closeText: 'Close',
showButtonPanel: true,
showButtonText: 'Choose a...
My Requirement is this.
Steps:-
On Client Click (button)
Disabled the Button.
Then it should prompt for OK or CANCEL.
If OK then fire the OnClick event (Code Behind).
If CANCEL then don't make a server-side trip and enable the button.
Following is the code I am using for the button.
<asp:Button ID="btn1" OnClientClick="this.disabl...
From an accordion panel, I post some data and then reload the page. I'd like on the reload for the current panel to be open and focused on the screen rather than re-opening the first panel and moving me back to the top of the screen. I know which panel I want open, so I don't need code to figure out the panel, just how to display it.
...
Hey, I'm trying to make an Address book for my site and I was thinking of having two panes. The one on the left to have Contact names, and the one on the right to have the contact details.
I can get the Contact pane loaded up using a while loop to cycle through my query, but then I was thinking that I really had no Idea how to load the ...
ul with links nested in a div layer. mouse pointer goes over .title, ul is shown.
the problem: mouseout() applies to nested elements
mouseout() is for the div
<div>
<a class="title">Section A</a>
<ul>
<li><a href=''>link 1</a></li>
<li><a href=''>link 2</a></li>
<li><a href=''>link 3</a></li>
...
When you need a link to contain info for an AJAX call what is the proper place to put the info?
I've always put it in the rel attribute, but reading the documentation for rel it seems this isn't the proper place:
This attribute describes the
relationship from the current document
to the anchor specified by the href
attribute. ...
I have 2 forms that share a submit button. I have that part worked out, what I'm having trouble with is adding the validation to each form. Here is what I have, I have not done validation inside a submit function before, but usually on document ready.
$("#sbtBtn").click(function() {
if($("input[name=license_code]").val()) {
...
I just encountered a problem when testing in visual studio with
XML Parsing Error: no element found
here http://stackoverflow.com/questions/3866511/why-do-i-need-registerstartupscript-for-a-simple-jquery-helloworld-in-asp-net
whereas it was very simple code
Someone else has also gotten this error http://chiragrdarji.wordpress.co...
I have a button, that when clicked is supposed to open a jQuery UI Dialog. It works in FF3, FF4, Chrome, and IE8 with ChromeFrame. It does not work in normal IE8. I get an error that simply says "Object required". Below is the function the click calls.
function punchNonProd()
{
var HTML = "";
HTML += "<tr id='burdenLine'><td><st...
I have set up Cakephp with admin login, but I do not have a page design.
Now what?
Do I have the site designed by a web-designer, or will this conflict with the person that is writing my fresh Jquery code.
What about CSS? Is the Jquery developer going to know how to attach them?
What comes first, the horse or carriage? Which ones th...
Hi, I just got help with the jQuery portion of this code (thanks David Thomas)
this is my current code so far, I was wondering what else I need so that the results are returned.
<div class="toolbar">
<a href="javascript:void(0);" onclick='$("#addC<?=$_SESSION['user_id'];?>").toggle();'><p id="addC20" style="...
Hi,
I am trying to create the grid dynamically. My objective is to create a sort of dynamic front end to show some of the database tables. So I need to add / remove columns dynamically. I need to change the datatypes of the columns dynamically.
I used the script provided as answer in a similar question.
I get my grid constructed it s...
hey all,
i have an apache server on port 8080 and apache tomcat on 8181.
i want to call a command in apache from tomcat. this command is a php script found on the apache server port 8080.
i use jquery inside a javascript function on tomcat server, using $.ajax. sthg like:
function fct()
{
$.ajax({
type: "GET",
url: pathof...