User Profile

Collapse

Profile Sidebar

Collapse
ashsa
ashsa
Last Activity: Sep 16 '10, 01:36 PM
Joined: Feb 28 '07
Location: New Delhi, India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Due to cross site scripting restrictions, I believe that this is achievable only if the page is in the same domain as that of your javascript file.

    You can use the ajax object XmlHttpRequest to open a connection to the target url and get the response text to see if such an image is there in the source HTML. However, I am afraid this will not check if the image is physically present on the server as it gets only the html source of the...
    See more | Go to post

    Leave a comment:


  • How to send http requests through a web proxy programmatically

    Hi,

    Could someone please illustrate how to send and receive HTTP requests programmaticall y through any HTTP proxy.

    Say if I have the ip address and the port number of a proxy(201.30.47 .218:3128) and I want to programmaticall y hit a site(www.google .com) through the proxy, what should be the URL my program use to hit google through this proxy?

    I came across this javascript based adobe AIR application "Market...
    See more | Go to post

  • ashsa
    replied to Loop Error help?
    in Java
    Check the for loop syntax..
    The second argument should be an expression that returns a boolean..
    In this case, it should be i<=5 instead of i=5.
    For the inner loop, j<=5 will be a correct syntax. However, given the requirement, this will not produce the output. Instead, will result in

    just think about it..
    All the Best !!...
    See more | Go to post

    Leave a comment:


  • ashsa
    replied to LoadFromSQLServer failed
    stored procedure alone from query analyzer worked..

    However when a dts was executed through an sp_executeDTS() , it failed.
    Apparently it turned out to be a problem with the buffer cache on the server and the issue was gone after restarting the server..

    Its still strange .. isnt it ??...
    See more | Go to post

    Leave a comment:


  • ashsa
    started a topic LoadFromSQLServer failed

    LoadFromSQLServer failed

    Hi

    We have a job scheduled every morning 03:00 which has been running for years without any issue. However, it failed today saying in the log that LoadFromSQLServ er failed. The work of the job is to call a stored procedure via isql which in turn executes a set of dts packages to load data from file to the db. I tried executing the individual dts via spExecuteDTS and the same result.
    When I tried executing these dts individually...
    See more | Go to post

  • ashsa
    started a topic Exponential Notation fails in format-number()
    in XML

    Exponential Notation fails in format-number()

    Hi everyone,
    I am trying to display a numeric value fetched from an sql server table which is stored in the exponential notation. For eg, 0.08 is getting stored in the table as 8.0000000000000 002E-2. This causes the xslt function format-number() to fail.
    I use it as
    Code:
    <xsl:value-of select='format-number(8.0000000000000002E-2, "###,###.00")' />
    The message says that
    Code:
    This name may not contain the '#'
    ...
    See more | Go to post

  • ashsa
    replied to Extracting Images from Internet
    in Java
    Got it !!
    Jus gotta set my server's proxy settings.
    Included
    Code:
     System.setProperty("http.proxyHost","xyz.com"); 
    System.setProperty("http.proxyPort", 8080);
    before creating the BufferedImage and it works fine :-)
    An alternative to this could be specifying the proxy details thru command prompt during execution.
    Eg:
    Code:
    java -Dhttp.proxyHost=xyz.com -Dhttp.proxyPort=8080 MyJavaClas
    ...
    See more | Go to post

    Leave a comment:


  • ashsa
    started a topic Extracting Images from Internet
    in Java

    Extracting Images from Internet

    Hi,

    Am trying to extract an image from a URL as follows:

    Code:
     
    try
    {
    BufferedImage input = ImageIO.read(new URL("http://www.google.co.in/images/close_sm.gif"));
    File outputFile = new File("image.png");
    ImageIO.write(input, "PNG", outputFile);
    }
    catch(Exception e)
    {
    System.out.println(e);
    }
    The URL is a valid one. But still...
    See more | Go to post

  • ashsa
    replied to Any Body Have made any game on VB6
    Your attachment of OX2.zip alarmed my anti-virus with a W32.Chir.B@mm threat for which the description is on http://securityresponse.symantec.com...072920-3942-99...
    See more | Go to post

    Leave a comment:


  • ashsa
    replied to Image Rotation
    Rotation as in Spin (clock wise or anti clockwise)..
    Cos when i give rotation, all google results pointed to links for displaying a series of images ( banner rotation )...
    See more | Go to post

    Leave a comment:


  • ashsa
    replied to displaying message using javascript
    Code:
     
    <HTML>
    <BODY>
    <a href="[url="http://www.google.com/"]www.google.com[/url]" onclick='showMessage();'>
    Don't Click here
    </a><BR>
    <span id='msg'></span>
    </BODY>
    <script>
    <!--
    function showMessage()
    {
    var message="How dare you click me !!"
    document.getElementById('msg').innerHTML=message;
    //return false;
    }
    -->
    ...
    See more | Go to post

    Leave a comment:


  • ashsa
    replied to Image Rotation
    I jus started off with the idea and din find a convenient way of doing this .. Googling on this for a long time .. I thought there might be a javascript function that can serve the purpose.. As you said, it indeed requires a lot of Trig n I would love it .. But dont have the basic idea how to rotate the image on a div with z-index set to 1..

    Any Idea would be appreciated.. Leaving Office now .. Jus thought not to disappoint you when...
    See more | Go to post

    Leave a comment:


  • ashsa
    started a topic Image Rotation

    Image Rotation

    Hi everyone,

    Is there a way to rotate an image to a certain degree using javascript ??
    My Idea is to rotate clockwise or anti clockwise an image based on the mouse coordinates..

    And to make it cool by changing the image dynamically loaded from a folder..

    Many Thanks..
    See more | Go to post

  • ashsa
    replied to Slide Out menu link help.(code included)
    I worked on this issue and fixed it successfully, but it was long ago .. Only thing i could remember is you should ve the code that open up the menu on the bigger button and the code that retracts the menu should be in the onMouseOut of the buttons in the movieclip. Hope that sounds meaningful....
    See more | Go to post

    Leave a comment:


  • ashsa
    replied to problem with animated movieclip
    The trace you have used should ve shown you clearly that the ball does nt move once it reaches 500.
    May be this could help :

    Code:
     
    onClipEvent (load) 
    {
    	speed = 10;
    	forward=true;
    	xpos = this._x;
    }
    onClipEvent (enterFrame) { 
    	trace(this._x);
    if(forward)
    {
    	 if (this._x<550){
    		this._x += speed;
    	 }
    	 else
    		forward=false;
    }
    ...
    See more | Go to post

    Leave a comment:


  • Could you please post a sample of your code demonstrating how you have implemented your tabs as ??...
    See more | Go to post

    Leave a comment:


  • ashsa
    replied to Paste html in place of selected text
    could you be a bit clear?? where do you wanna insert the span tag ?...
    See more | Go to post

    Leave a comment:


  • ashsa
    replied to Problem with stopping form submission
    The code goes this way :

    Code:
    <script>
    function validSearchString()
    {
    	var str=document.getElementById('stringToSearch').value;
    	if(str.length<3)
    	{
    		return false;
    	}
    	else
    		return true;
    }
    
    function validPresType()
    {
    	if(document.getElementById('<%=PrescriptionHelper.PRESCRIPTION_TYPE_RADIO_BUTTON_NAME%>').selectedIndex==0)
    ...
    See more | Go to post

    Leave a comment:


  • ashsa
    started a topic Problem with stopping form submission

    Problem with stopping form submission

    Hi all

    Am trying to validate a form onsubmit. And all the validation functions are working fine. I have assigned different type of validation functions to be called on clicking each input type="image"

    The problem is when one button (image) has been clicked and an alert is given, after that whatever button (image) i click shows the same validation alert instead of showing its own validation error ..
    ...
    See more | Go to post

  • Got your point !!
    Thanks a lot ......
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...