User Profile

Collapse

Profile Sidebar

Collapse
cameokid
cameokid
Last Activity: Jul 20 '09, 11:39 AM
Joined: Feb 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hey thanks.

    Sorry for the late reply.

    That is what i had to do. Used "clientValidati onFunction" property. Read somewhere on net that all validators do not cause post back except a custom validator. Hence i tried client validation using Javascript to avoid post back and it worked fine. Below is the JS Function.
    Code:
    function CustomVal_ClientValidate1(source, args)
        {
            var pcdata
    ...
    See more | Go to post
    Last edited by Frinavale; Mar 16 '09, 01:02 PM. Reason: Added [code] tags. Please post code in [code] [/code] tags.

    Leave a comment:


  • custom validator causing postback after error message is displayed

    Hi,

    I have a table with some form fields. This table is hidden on load. I display it on click of a button.

    After i enter values and click button inside this table. It displays the custom validation error inside table (I want the error msg to be displayed inside table) but causes postback and hides the table. How do I stop the postback and display the error message while the table is visible.

    The code inside...
    See more | Go to post
    Last edited by Frinavale; Feb 11 '09, 03:40 PM. Reason: Moved to ASP.NET Answers and added [code] tags

  • Yes joedeene. What you say is true. AddEventListene r resolves all the event handling issues in AS3.
    But i am currently working on AS2 and am confused about the event handling methodology used in it. Hence i am looking out for differences among on(event), addListener and addEventListene r....
    See more | Go to post

    Leave a comment:


  • Event handling in AS2 - addListeners and addEventListeners

    I have a doubt as to why we have addListeners and addEventListene rs in AS2.

    At times addListeners works and at times addEventListene rs does the job.

    Can some one please differenciate as to when addListener is to be used and when addEventListene r?

    To addup to the confusion, we have event handlers directly linked to objects such as movie clips

    e.g. obj_mc.onPress

    So when do...
    See more | Go to post

  • Yeah that's great.

    It works fine when you delete in the reverse order.

    Thank you.
    See more | Go to post

    Leave a comment:


  • Hi,

    Here is what you can try.

    In the first page you can have the below onClick function in the anchor tag
    Code:
    onClick="window.open('popUpPage.html'+'?'+escape(1.5),'_blank')"
    1.5 is the value you are passing to the popup page.
    In the pop up page you should have a onLoad function which includes this code
    Code:
    var val = unescape(location.search.substring(1, location.search.length));
    ...
    See more | Go to post

    Leave a comment:


  • Deleting rows in a table in HTML page containing data from XML

    Hi,

    Here is the problem which i am facing. I am trying to delete rows (using nodes) containing XML data. I am doing this to add new set of data from XML file by using a dropdown selection.

    I am using the below code.(This is just a part of the code)

    Code:
    tab = document.getElementById('maintable').getElementsByTagName("tbody")[0];
    for(i=0;i<tab.childNodes.length;i++) {
    ...
    See more | Go to post

  • The code works perfect with this line

    Code:
    x.style.clip="rect(0px,"+(n*50)+"px,"+(n*50)+"px,0px)";
    The variable should be enclosed between "+" signs when used as an attribute value. That's the lesson for me.


    Thanks a lot.
    See more | Go to post

    Leave a comment:


  • Sorry i was late in replying. Next time i would make it soon

    Thanks for the help

    The link was much useful. Here are some modifications that i made and its working fine

    [HTML]<html>
    <head>
    <style type="text/css">
    .img1
    {
    position:absolu te;
    clip:rect(0px 50px 50px 0px)
    }
    </style>
    <script type="text/javascript">...
    See more | Go to post
    Last edited by acoder; Mar 5 '08, 09:52 AM. Reason: Added code tags

    Leave a comment:


  • cameokid
    started a topic making an image appear using clip property

    making an image appear using clip property

    Can someone help me out with this.

    Here is what i am trying to do. I have an image of size 310x310. Initially i am displaying only 50x50 using clip property. Later using setTimeout property i am trying to get the entire image so that it looks like animation. But this doesn't happen with the code below

    [HTML]<html>
    <head>
    <style type="text/css">
    .img1
    {
    position:absolu te;...
    See more | Go to post
    Last edited by acoder; Feb 20 '08, 09:54 AM. Reason: Added code tags
No activity results to display
Show More
Working...