I'm having a really strange problem in struts 2.1.8.1 with the dojo tree and ajax links.
Ok, I got a dynamic navigation tree that looks like the second example in the showcase project that comes with struts(not the one named ajax).
When the link in the tree is clicked a target div is updated. This works fine.
Now for the weird bit. If ...
Hi,
I am making an Ajax call and adding content to a form inside a MVC2 app.
I need to update the Client Validation Metadata with the validation for my new content.
<script type="text/javascript">
//<![CDATA[
if (!window.mvcClientValidationMetadata) { window.mvcClientValidationMetadata = []; }
window.mvcClientValidationMetadata.push(...
I need to be able to add some javascript to all ajax postback responses (PartialViewContext.isAjaxRequest == true) but I am not succeeding with any implementation I try.
I have tried implementing a
PhaseListener
and adding my script using PartialResponseWriter.insert* to add eval blocks, as well as trying to add the script by creatin...
I am making a clone of quibids.com in asp.net. This site is in PHP. Can anyone check it and tell me which technology / language they are using behind those so many running counters at the same time ? Is that server side counter or client side counter ? I have tried ajax counter and ajax update panel in asp.net but it is taking so much ti...
var blah = Some.Thing(data, function(a,b) {
// code here
});
Some.Thing = function(data, callback) {
if(...) {
var a = Other.Thing(data, function() {
// code here
callback();
return;
});
}
callback();
};
My question is, will the part that says //code here fire only after everyth...
Hey guys,
I want to use the argument I pass (this) in a JS function and treat it as an jQuery variable.
Example:
<script>
function useMe(obj){
$(obj).val();
...
...
...
}
</script>
<select id="selectid" onChange="useMe(this)">
<option>......</option>
</select>
Is there a possibility to treat the passed argument as ...
This really should be much easier, so I must be missing something obvious. I have a C# ASP.NET page that is AJAX enabled. I also have an ASP.NET panel that is initially empty but I create a couple of drop-down lists and add them in the code behind. This part works just fine. However, when the page does a postback, the controls"disappear"...
Hi,
I'm kind of stuck with this pretty simple (I'm sure) jQuery/Javascript issue.
Here's the code :
jQuery.validator.addMethod("emailExists", function(value, element, param) {
var email = value || '';
var valid = 0;
$.ajax({
type: "POST",
url: param,
data: "email=" + email,
success: function(msg) {
if (msg != '' ...
hi I'm new to Selenium and I'm having a problem:
when I have the Selenium IDE opened and I try to click on the login button in my app the app seems to be stuck (the same issue is when I try to play the recorded click in the Selenium IDE). Entering values to textboxes works fine but the click doens't. The request is not being send to the ...
Hey guys,
I'm using jQuery 1.3.2 and Live Query plugin. The script needs to work in FF as well as IE6. Upgrading jQuery and using live instead isn't a possibility.
Somehow this script won't be called by the dynamically created element.
$('select').livequery('change',function(){
var select_id = $(this).attr("id"); ...
I have seen it but dont know how to achieve it.
The idea is that I have a drop down menu and when something is selected, something else will appear. Is it AJAX?
Any ideas?
...
Hi,
Would like to write a script to detect the file size of the target of a link on a web page.
Right now I have a function that finds all links to PDF files (i.e. the href ends with '.pdf') and appends the string '[pdf]' to the innerText. I would like to extend it so that I can also append some text advising the user that the target ...
The webpage is here:
http://develop.macmee.com/testdev/
I'm talking about when you click the ? on the left, it is supposed to open up a box with more content in it. It does that in every browser except IE!
function question()
{
$('.rulesMiddle').load('faq.php?faq=rules_main',function(){//load page into .rulesMiddle
var rul...
I am trying to add a simple comments/message box to a web page. When the user enters the comment and hits submit, I would like to save this message to the database and add the comment to the list displayed on the page, without refreshing the entire page.
However, I am not sure of the best way to do that these days. I am using ASP.NET...
I've spent a week trying to use http://monitoring-gps.com.ua/aspservices/asptest.asmx methods on client side. How to do that?
...
I have some rendering logic for custom markup (a'la bbcode, but not bbcode). So that when I'm getting the stuff from DB I'm then calling MyRender.ToHTML(model.text)...
Now what I do today is I just have a form below and I do a post and add the item and return the same view. My question is - how to do it with ajax? Should I create a con...
in a form i have a buttoin, when click both OnclientClick and postback should happen. on clicking the "Email" button a client side "mailto" tag should do the work and pull a new message window on the client's machine.
whereas, the email addresses should be invoked by the post back. so , when clicking the button the server side post shou...
AJAX is the big thing...but it seems (to me) that with Silverlight 4 Microsoft has offered a really robust method for creating UI interfaces for the web. I'm wondering - what is the future of AJAX? Do AJAX and Silverlight complement each other or will Silverlight replace AJAX, etc.?
...
Hi there,
I'm having trouble using AJAX page updates along with other AJAX scripts.
During a normal page load, the AJAX scripts (picture scrolling and picture thumbnails) work fine. But when I update a page with AJAX, these scripts (usually loaded in the header of the initial page load) stop working.
I am wondering if this is specific...
Here's script being called through ajax:
<?php
require_once '../app/Mage.php';
umask(0);
/* not Mage::run(); */
Mage::app('default');
$cat_id = ($_POST['cat_id']) ? $_POST['cat_id'] : NULL;
try {
$category = new Mage_Catalog_Model_Category();
$category->load($cat_id);
$collection = $category->getProductCollection();
...