Hello everyone,
I have a code snipet like this:
var nbrPrevArt = $("#accordion > div .accordionPanel").size();
var processing = false;
if (nbrPrevArt == 0) {
processing = true;
getArticlesPreview();//Fetches articles first
}
//loop that makes the browser to wait until finishes "getArticlesPreview()"
while(!processing)
{
}
...
Hi,
Could someone provide me with the most simple code for form submission with jquery. On the web is with all sorts of gizmo coding.
Thanks in advance
Dave
...
Hello, I am trying to allow the users of my website, to upload images and then select one to be a back image, the uploading works fine, but I have a problem in my controller or view I think, i would appreciate it some could help me out,
VIEW:
<div id="background-select">
<?php
$count = 0;
if(isset($special)) {
foreach ($s...
Hello!
I have a custom drupal module which saves uploaded files passed from the uploadify jquery plugin. All seemed well but some images are coming up with grey blocks in them. See:
http://5oup.net/sites/default/files/360/5ouppic.jpg
This is a user submitted image and I'm unable to reproduce the problem myself - as I understand it it...
Hi,
I'm using the jQuery Validator Plugin. My code is like this:
<input name="username" type="text" class="newtextbox required" rangelength="(4,16)">
The error message is "Please enter a value between NaN and 4 characters long". The actual error message that has to be is "Please enter a value between 4 and 16 characters long".
I thi...
I have a kind of "tab" solution built in jquery. When a user clicks a tab I get the id of that tab and shows the right content for that tab based on the id. It works perfect in Firefox, when the tab is clicked it hides all divs with class "Page" and then show the right Page.
In IE8 it also works in the same way BUT a strange thing happ...
What is the best way of creating dynamic style tags using js and/or jQuery?
I tried this:
var style= jQuery('<style>').text('.test{}');
This works in FF but pops an error in IE7 "Unexpected call to method or property access."
var style = document.createElement('style');
style.innerHTML='.test{}';
Gives the same error. It doesn't m...
i have the following JSON response, but i am not sure how to properly loop trough it and use.
{
"ID": 1,
"Name": "dept1",
"Categories": [
{
"ID": 1,
"Name": "catg1"
},
{
"ID": 2,
"Name": "catg2"
}
]
}
following code alerts me the departmentID which is 1, then its name 'dept1', then this:...
I have a table with a few rows...
I select a row and click on modify and I should be able to make all the cell of that row editable...
how does one do to make a cell editable in javascript?
Is it better to use Jquery and how ?
...
Hi there, am having a little issue with Jquery and wondering if anyone could assist
I have a form, which i am validating on blur
$('form#setAdminUser :input').blur(function () {
var $item = $(this);
var $itemWrapper = $(this).parent();
$itemWrapper.find('input').removeClass('errorRow').end()
.find('span').remove();
// There are other...
There is Json array and i am using it to display my error messages.
var errorMessages {
"E1":"Error Occured During Request Processing...",
"E2":" Enter User Name"
}
Next i want to display error messages base on error id
function showMessage(errorId){
$('#serverMsg').html('');
var msg = $('#messageContainer');
...
i want to popup a div with iframe content.
dose search engine can read this when i'm using jquery to perform that ?
OR
is there a way to detect search engine in server side and remove the option of this popup ?
thanks
...
I have the following code that applies a XSLT style
Test.Xml.xslTransform = function(xml, xsl) {
try {
// code for IE
if (window.ActiveXObject) {
ex = xml.transformNode(xsl);
return ex;
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && doc...
I would like to use jquery highlight effect to highlight a paragraph with background orange, then when completed, turn on orange background permanently. In this code the second task does not work.
myparagrah = $("#thisParagraph");
turnOrangeOnWarning("This is a warning!");
function turnOrangeOnWarning(t) {
myparagrah.text...
Hello, I am trying to animate background images on my site, when a background image is selected I want it to slide in from the left and push the old background out of picture, can anybody help with the code as the stuff I have written does not work,
<script type="text/javascript">
$("a.background_btn").click(function(ev){
ev.pre...
Hi,
I currently have a controller method that returns a JsonResult:
public JsonResult EditField(int FieldID, string FieldValue)
{
var f = ManagerProvider.GetFieldManager();
try
{
f.UpdateField(FieldID, FieldValue);
return Json(new { State = "Success", Message =...
I need to align an inner div with the bottom of an outer div.
My code looks like this:
<div class="myOuterDiv">
<div class="div1 floatLeft"> Variable content here </div>
<div class="div2 floatRight"> <img class="myButton" src="" /> </div>
</div>
The content of 'div1' may vary, making the height of the outer div to vary.
How c...
Hi,
I'm using Colorbox to show some messages on my website. When I launch the colorbox, using the code below, the body of my parent page is moving a little bit to the richt and bottom (see picture).
Code to launch Colorbox:
$(".weather a").colorbox({href: "page.html"});
Picture: http://www.imgdumper.nl/uploads2/4b4b3ffd2abcf/4b4b3ffd2...
Hello all,
I'm trying to make a dialog that requires a user to agree to terms before continuing, and don't want to allow the user to just click the 'X' in the top right corner of the dialog to close. I'd like to require that the user click 'I agree'.
Is there any way to disable the 'X' in the dialog?
Thanks.
Clarification: I'm just u...
I am working with a pretty complicated .aspx page that is full of controls (Telerik, Ajax, etc.) that all expand, collapse, show, hide, etc. when the page is loaded. Since this rendering happens on the client-side and can take different lengths of time based on the users machine specs, is there a way to detect when all (or some) renderi...