From all those:
HTML, XHTML, DHTML
which one is the present standard? Which one to use for better browser compatibility?
Similarly, what are the recommendations for JavaScript and Ajax?
Edited:
I design my applications using Aptana Studio. How to know which version of HMTL/JavaScript/Ajax it is using and how to change it?
...
Hi all,
I am working on a youth group social network site and everything has gone smooth for the most part. Most problems I have been able to solve myself or google came through. This one is above me and google ain't helping! :(
Can I do this during an ajax request from a view script?
<?php if($this->tools):?>
<?=$this->action('postfo...
On click of a button, I am saving the record to the database. I don't want to refresh the page, it must be handled through AJAX.
I have the code for AJAX, I just want to know how to enable/disable the Submit button?
...
We use jQuery's global ajaxError() handler to alert the user of any AJAX failures:
$(document).ajaxError(function() {
$("There was a network or server error. Please try again later.").dialog({
title: "Error",
modal: true,
resizable: false,
buttons: { 'Ok': function() { (this).dialog("close")...
Hi,
I've coded a bookmarklet that opens a new window at a certain URL and sends some variables to a PHP using GET.
The problem is I need to have it load the same php and send the same variables but inside a div this time.
Could anyone point me in the right direction please?
...
I have this code:
$.ajax({
url : url,
data : {ids : JSON.stringify(jsonids), hotel_id: hotel_id},
success : function(response)
{
$('#be-images ul').prepend(response).fadeIn('slow');
},
dataType: 'html'
});
but the fade In does not work...I want the content to be prepended...
i followed the ajax solr tutorial, and in step one i wrote this code.
header.php:
<script type="text/javascript" src="static/js/ajax-solr/core/Core.js"></script>
<script type="text/javascript" src="static/js/ajax-solr/core/AbstractManager.js"></script>
<script type="text/javascript" src="static/js/ajax-solr/managers/Manager.jquery.js">...
I have two tables on my page and they appear side-by-side. The first one contains an entry form and the second one contains a grid that displays rows of records.
When the user clicks on a row, the data related to that row must appear on the boxes of the form in the first table.
I know how to call a .php file through AJAX. But when I h...
Hello!
i have view which looks something like this :
<% using (Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "someDiv", HttpMethod = "Post"))
{%>
<%= Ajax.ActionLink("Add new", "AddNewItem", new AjaxOptions { UpdateTargetId = "divAddNewItem", HttpMethod = "Get" })%>
<div id="divAddNewItem">
</div>
<input type="submit" valu...
Hi,
I'm new to ASP.NET MVC and jQuery, so I thought I'd share how I implemented loading of partial views and submitting forms in a way that doesn't require for the entire page to be refreshed. I hope to get some critique from the experts if there's a better way to do this :)
All the magic is done by 3 javascript functions which I bin...
I know jquery/ajax in IE is a common problem. There is a lot of great advice here on stack overflow but none of it has worked for me yet.
The following code works just fine in firefox, but does not in IE:
$.ajaxSetup({ cache: false })
$.ajax({
url: 'FunDataService.asmx/' + funDataMethod,
type: 'POST', dataType: 'html', cache: false, ...
How would you create a new html li element dynamically in the code behind (server side)?
How would you access an li in an existing ul element on the server side?
I need to FindControl get all li items and then add new li item.
Update
I'm using jquery ajax to access server side, so I must use static WebMethod. FindControl is non/static...
I have a panel with certain properties nested within an UpdatePanel I use for AJAX:
<asp:UpdatePanel ID="updPanel" runat="server">
<ContentTemplate>
<asp:panel ID="Panel2" Width="106" defaultbutton="ibSearchSubmit" runat="server">
Usually, the panel renders correctly as follows:
<div id="ctl00_Panel2...
Hello,
I'm using jQuery to make an AJAX call to a remote server, but with the code as it is (and ostensibly correct) I get an empty response. If I change the dataType to "script," I get the expected XML in the response, but I'm unable to do anything with it. Here's some pseudocode I'm working with:
function sendData(data)
{
$.ajax(
...
I am using the Ajax Minifier http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=766 and have embedded it in the csproj file for use in Visual Studio 2008 (not the free version). I have two folders, Content and Scripts, directly under the root of the project. Also, the Content folder has subfolders, and would like to include all ...
Hi ,
I am new to ASP.Net MVC. I am trying to create a google type of search functionality for my drop down list, which has a hugh amount of data. It means when I type the characters the related search items will be filtered. I am not finding the correct parth to do it in ASP.NET MVC environment.This is part of a Data entry form. The fo...
I have a small script, where on change I am getting the ID of a select, I then want to take that ID and send it via "data:" through the jQuery AJAX call. I am using XML for my data and I am sending this ID for it only returns results with that specific ID?
I understand how to do this with PHP, but never worked with XML and jQuery befor...
i have one function in jquery like this
$("#Button_save").click(function()
{
Save Command;
});
this work fine with image
<img src="save.png" width="16" height="16" id="Button_save" style="cursor:pointer"/>
i want to call same function on text hyper link
i use this
<a href="#" onclick="javascript:Button_save();">...
hi
this is my page Test1.asp
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script type="text/javascript">
function Alex()
{
var xmlHttp;
try
{
xmlHttp=new XMLHttpRequest(); }
catch (e)
{
try
{
...
I'm using this code to submit a form to a php script:
var valid = 'true';
$(document).ready(function(){
$("#contact").submit(function(){
$.post("process.php",
$("#contact").serialize(),
function(data){
if(data.email_check == 'invalid'){
valid = 'false'; //<---not set!
$("#email1").addClass('...