hi I've been trying to add VML image elements using javascript.
now here is what I'm using to generate these images:
function add_tools()
{
var elemm = document.createElement('rvml:image');
elemm.setAttribute('src', 'pic.png');
elemm.setAttribute('id', 'gogo');
elemm.setAttribute('class', 'rvml');
document.body.appendChild(elemm...
Hi folks
I want to implement the following page by Asp.net version 4.0 and ajax but I want to have loading by order like loading item 1 and 2 and so on. I have container or web part but mostly container like simple asp.net panel. how I can implement it ? I used updatepanel and update progress but it doesn't work that I have expected befo...
Hi my dear friends:
I know how can we use onkeyup event of an element...
but I want to have an alert in all of my form areas when a client presses the enter key(for example) (not on an unique element)
Is there a function that already exists in javascript to do this? Should I create a function to do this? Or should i put alert code (wit...
Hi there,
I developed a system that consists of software and hardware interaction. Basically its a transaction system where the transaction details are encrypted on a PCI device then returned back to my web based system where it is stored in a DB then displayed using javascript/extjs in the browser. How I do this now is the following:
...
Hi guys, how can I go about creating a form with javascript?
I have NO idea on how to proceed, I have been googling my face off but there is nothing definitive that can show me how to dynamically create forms with it.
Thanx in advance!
...
Hi,
I am using Jquery Uploadify for images upload with PHP, here i want to upload multiple images in different folders i.e first image will upload into 'folder1' ,2nd image upload into 'folder2' and all these uploads should be done by single instance of uploadify. Is it possible or not??
...
Hi
I've got a list of items which have a background image (via CSS) and some text. The simple markup is as follows:
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
etc...
</ul>
Imagine that each list item is a square. Is there an easy way to display these as a semi-circle? i.e.
[][]
[] []...
Hi all,
I am trying to validate a twitter url, so that at least it contains a username. I do not care if it exists or not, just that there is one.
I am using the below javascript regex
var re = new RegExp('((http://)|(www\.))twitter\.com/(\w+)');
alert(re.test('http://twitter.com/test_user'));
but it is not working.
The strange thi...
I don't have the problem.
The table is so:
<table id="table">
<tr>
<th>value</th>
<th>Total</th>
</tr>
<tr>
<td>x</td>
<td>100</td>
</tr>
<tr>
<td>y</td>
<td>101</td>
</tr>
</table>
t...
So here's a DateTime editor a la NerdDinner's /Views/Shared/EditorTemplates/DateTime.ascx:
%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<System.DateTime>" %>
<%: Html.TextBox("", String.Format("{0:yyyy-MM-dd HH:mm}", Model))%>
<script type="text/javascript">
$(function () {
$("#date").datepicker({ showOn:...
Hi,
so i'm creating a login_url using php framework and getLoginUrl().
if my facebook app is setted as an FBML page, something like this works fine
echo '<fb:redirect url="'.$login_url.'" />';
but i need my facebook application configured as an IFRAME page, so it will not be rendered as FBML.
whats the best way to redirect my user ...
I'm having an issue with sending post data to server when using Firefox.
The server is running on Google App Engine.
Here is what I have in my javascript.
$.ajax({
url: 'http://someurl/example/myform.json',
type: 'post',
dataType: 'json',
data: {
'value.title': title,
'value.info.first': first,
'value.info.second': val...
I have a firefox extension that collaborates with a web page, and occasionally needs to inject data into it which the page formats and displays.
The way I do it now is :-
var element = doc.createElement("MyData");
doc.documentElement.appendChild(element);
for(....)
{
var x = ....
var y = ....
var z = ....
var row = do...
I'm using Snap.com service to create snapshots to Wikipedia links on my web page. It works fine with the links in the page when page is loaded. But it doesn't work when new links are created and inserted into the web page via Javascript.
The Snap.com script is called once when the page is loaded:
<html>
<body>
...
<script type="...
i want to send a jsp page which consist of some divs and table as part of ajax response from spring frame work, is there any way to send jsp as an response of ajax call
...
Hi All,
is there any jquery datepicker plugin to display as Buddhist date?
currently I use jquery ui datepicker to display it, but it's not actually I want. here is the code
$(document).ready( function() {
$("#datepicker").datepicker( {
appendText: ' yyyy-mm-dd',
autoSize: true,
buttonImage: 'images/calenda...
Does anyone know what that script was called that checks for HTML5 and CSS3 support? I think it also adds support for them. It was called something like Modifier.
...
Hi,
My impl of fillRect much (> 3 times) slower than context2d.fillRect. How I can optimize my code or why builtin fillRect faster (some app acceleration?)?
My impl:
__fillRect : function (data, x, y)//, r, g, b)
{
var w = this.__width * 4;
var idx = x * 4+ y * w;
var idx_1 = idx + 4;
var idx_2 = idx + 8;
var ...
I have written ashx which merges and remove white-spaces for javascript and css contents.
Using VS2010 ASP.NET Development Server everything works fine.
But in IIS7, text/javascript contents are not compressed (I'm using fiddler to monitor it).
I don't have problem with text/css contents and both of the contents are handled by the...
Hi,
I have got a test page to use Ajax to make a http 'delete' request to a server. The following JS code works as intended in IE7, but it does not work in Firefox (unless I make the ajax call asynchronous).
In Firefox, unless async is false, the error callback gets triggered with status of 0.
Can anyone assist in explaining why t...