I have a next string like:
<img src="../uplolad/commission/ranks/avatar.jpg' . $row[$c_name] .'" width="50" height="50"/>
How can i get a image file name in javascript? I know only PHP regexes. Extention of a file can be different.
The result must be: avatar.jpg
...
i need to push data in javascript array into database using PHP
first i have multidimentional array in js.
Brady [0] [0] = "1";
Brady [0] [1] = "Carol";
Brady [1] [0] = "2";
Brady [1] [1] = "Jan";
Brady [2] [0] = "3";
Brady [2] [1] = "Mike";
and i have table in database such as (id, name)
second if i need to delete some rows in arra...
Hi,
i am having this same issue using IE7 and jqery 1.4
problem is :
i have a popup like this
<div id="model_content_savefilter" style="display:none;">
<div style="display:none;" id="SaveFilterErrorMessage" class="errorMessage"></div>
<table id="save_filter_modal" cellpadding="0" cellspacing="0" border="0">
<tr><td>You ...
Hi,
When i paste any text in any element with 'contentEditable' flag enabled, IE automatically finds the hyperlinks or email address and replaces them with
<a href="hyperlink">hyperlink</a>.
How can i disable this automatic url detection for elements(e.g. div, span etc.) with 'contentEditable' flag in IE or aleast get the actual text...
Hello,
I'm dynamically inserting some html into the document (by using obj.innerHTML += 'some html'). In that html, there are images with 'imageId_X' ids (ie. imageId_1, imageId_2...). This works fine, but there's something wrong with the following code:
for (var n = 0; n < pConfig.images.length; n++)
{
document.getElem...
Hi,
I'd like to get some tips and tricks to implement a web-interface with JavaScript that would allow users to click on some predefined regions on a map and returns a list of the clicked regions when clicking on a submit button. This list will be then send to a server (for that I can use the HTTP "post" method).
The first question is ...
We as a group develop Javascript/JSP web application,
and the problem is we are developing the webapps based on customer requests,
while another team (core team) develops the "core" webapp product.
In other word, we "customize" the Javascript/JSP webapp differently for different customers, most of the customization is in the Javascript...
I have recently begun working on a PHP/JS Form Class that will also include a SQL Form builder (eg. building simple forms from sql and auto inserts/updates).
I have tried several classes (zend_form, clonefish, PHP Form Builder Class, phorms etc) but as yet haven't come across a complete solution that is simple, customizable and complet...
let's say I have code like this:
var object1 = {};
object1.class1 = function() {
this.property1 = null;
this.property2 = 'ab';
}
in this case, what does 'this' stand for? object1 or class1? And whenever I want to define a class constructor inside an object, what is the best way to do it?
...
I need to manipulate parts of a form in Drupal 6 based on the contents of a file field.
For example:
if the form shows and there is a file, do x
if the form opens without a file, do y
if a file is uploaded, do z (as soon as the upload is finished)
if a file upload fails, or the uploaded file is deleted, do xyz (whether ahah is used o...
I have been developing web applications for a few years now. One of the issues that I face is having to develop web apps where javascript is not enabled or not available. I know this was a issue a few year back but am curious to know what other web designers, developers think about this issue? Is that still an issue?
The reason I am a...
what shold be the directory structure that i should follow while using dojo.
My webpage is A.html placed in directory sample.
Sample contails A.html, JS
JS contails all dojo filese DIGIT,DOJO,DOJOX
what code shold i use inside A.html to import this libraries
...
Hey, i need a lib or a plugin to sort a ul/li tree. It should have the handle option, like the on for jQuery UI. And you should be able to move the li's to the parent or child ul's.
...
Hi There, I have some ajax on my web page, that is triggered via a click event, the javascript in question looks like this,
$('.career_select .selectitems').click(function(){
var selectedCareer = $(this).attr('id');
$.ajax({
type: 'POST',
url: '/roadmap/step_two',
data: 'career_choic...
Hi All,
OK...here goes. I am working on a bespoke intranet system which has a holiday calendar.
This page is quite long and requires scrolling. This is where the problem comes in.
If I scroll down the page in IE(company policy) then click a day(this is a table cell)...a pop-up(div) should show up where I clicked. Now it shows up, but ...
i have created a little slide show in jQuery. On clicking-n-dragging your mouse it shows next/previous slide. I have added special code for dealing with iphone. But on iphone (safari)
when i move my finger over the object the whole page is dragged left-right.
here is the code
var oldX = 0;
$('#movieShow').bind('touchstar...
Hi,
Does anybody know if there is a tool around that can convert html to javascript.
For example:
<div>
</div>
would convert to
aDiv = document.createElement('div');
document.appendChild(aDiv);
etc
I'm am doing a few html templates for UI components and am using MooShell for prototyping. It would be great to be able to auto-gen...
Which one is the best Javascript minifier?
...
Ok, this is a very simple question. I am actually 90% sure I know the answer, but the late hour is causing me to completely space it. I've searched it on SO and Google to no success.
How do I get return data from an event handler function?
I have several nests of event handlers, and need to get the result from the deepest out to the ma...
The question is clear on the title I guess?
"How to get GMap2 object after initialized?"
=> I would like to extend this question:
Is there any method to retrieve all existing google markers from GMap2 object?
Thanks in advance.
...