Web Development
Member Avatar

http://jsfiddle.net/re2af/193/

Does anyonw know how I can add some pre-filled data to this table? I've commented what I'm trying to do but bascially:

Click add item button > creates new …

Topic by MissMolly

http://www.w3schools.com/jsref/met_table_insertrow.asp

This is simplest explaination one need to insert row/cell to a table.

Can you put your code so that we can find what is wrong in your try?

Web Development
Member Avatar

Hello,

If I have an array structured like the following:

'0' …
    '0' …
    '1' …
    '2' …
'1' …
    '0' => "Mike"
    '1' => "1892"
    '2' => "1"
'2' …
Topic by mbarandao
function getGroups(yourRawArray) {
    var group1 = [];
    var group2 = [];

    for(var i = 0; i < yourRawArray.length; i++) {
        var obj = yourRawArray[i];
        if(obj['2'] == '0') group1.push(obj);
        if(obj['2'] == …
Web Development
Member Avatar

I'm try to make javascript onclick function in php file.the result is make an alert window in my page.
but nothing happen.please help me.
this is my code:

<script type="text/javascript" …
Topic by Ricky_2

You haven't handled ajax error method. I am sure it will be going there.

Thanks!

Web Development
Member Avatar

Hi All,
How can we enable HTML code compression in .Net? Is there anything we need to do in web.config or external tool is needed?

Thanks!

Topic by Luckychap

Hi pritaeas - Thanks for the reply.I am looking for someting which google do to compress the html code(If you see the source code of www.google.com). I was wondering if …

Web Development
Member Avatar

Hi All,
How can we enable HTML code compression in .Net? Is there anything we need to do in web.config or external tool is needed?

Thanks!

Web Development
Member Avatar

I'm a bit new to DOM [please bare with me] and what I want remove some html as I don't actually have access to the HTML file. This is because …

Topic by jelly46
$(".second-form").clone().prependTo("#frmMain");
$("#frmMain").remove();

Use jQuery to make your life easy!

First clone the inner form and add it above the outer form. Them remove the outer form.

Thanks!

Web Development
Member Avatar

Hi

I am looking to create a personalised web page, based on the web address I am going to give somebody. So say I have the web address beanburger.co.uk and …

Topic by lifeonholiday
function getParam(paramName) {
    var url = window.location;
    var params = url.substring(url.indexOf("?") + 1 , url.length).split("&");
    for(var i = 0; i < params.length; i++) {
        var param = params[i].split("=");
        if(param[0] == …
Web Development
Member Avatar

Hi, I thought I'd share this with you. If you want all fields on a web form to be emptied of ther initial value (if any) on focus and filled …

Topic by josverhoeff

This can be done more simply as follows (although some may find harder to understand):

$(document).ready(function () {
  $(':text').on('blur focus', function (e) {
    var values = ['', this.defaultValue],
        isFocus = …
Web Development
Member Avatar

Hi all,
I have a small silly issue which i'm embarrassed I cant solve...

I have a function which loops every second to see if a status has changed.
When …

Topic by Evil_genius82
var beeped = false;
function checkResponseStatus(){

    $.getJSON("requestrespond.php",  

    function(data)
    {   
        …
        …
        …
        if (respond_status == 1) {  //request has been made
            document.getElementById("responseStatus").disabled = false;
            document.getElementById("responseStatus").innerHTML = "Request Sent on "+ …
UI / UX Design
Member Avatar

http://stackoverflow.com/questions/10487292/position-absolute-but-relative-to-parent
Hey, so, please check link above. There is first resolving answer, which was resolving my problem. But now I have problem, that DIV isn't displaying well when it is …

Topic by RikTelner

height of an relative positoned element in % is caclulated on the basis of its parents. You need to set height of parent. In case parent is body you can …

Web Development
Member Avatar

Hello, long time no ask

I have this problem... seems to work fine if i put it like this

function cerrarTimeout() {
setTimeout("cerrar()",1400);
}

But i want to pass a …

Topic by centenond

This is solved but here is the more clean method to pass argument(s) you should know:-

function abc(msg, msg1){
    alert(msg + " | " + msg1);
}

setTimeout(abc, 500, "Hello", …