Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7632785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:42:51+00:00 2026-05-31T06:42:51+00:00

I am generating a URL using Timestamp like this : var writeDate = function(){

  • 0

I am generating a URL using Timestamp like this :

var writeDate = function(){
    var x = new Date();
    year = x.getFullYear();
    month = (x.getMonth()+1) < 10 ? '0'+(x.getMonth()+1) : (x.getMonth()+1);
    date = x.getDate() < 10 ? '0'+x.getDate() : x.getDate();
    time = x.getHours() < 10 ? '0'+x.getHours() : x.getHours();
    minute = x.getMinutes() < 10 ? '0'+x.getMinutes() : x.getMinutes();

    var timeStamp = String(year+'-'+month+'-'+date+' '+time+':'+minute+':00.000');
    return String("http://107.20.173.235/BlufinAPI/Service/WhackAScrip.svc/GetWASOneMinuteSensexDatawithPosition?TimeStamp="+timeStamp);

}

// calling using a function

$.ajax({
            cache: false,
            type: "GET",
            async: false,
            url: writeDate(),//getting URL but not retrieving the live data
            dataType: "jsonp",
            success: function (msg) {
               $(msg).each(function(i,value){
                    seArray[i]=value.CurrentPrice;
               })
               showResult();
            },
            error: function (xhr) {
                    console.log('update:'+msg);
            }

then, i am calling my json function using returned url, but it’s retrieving the live data is it wrong anything?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:42:53+00:00Added an answer on May 31, 2026 at 6:42 am

    Try doing encodeURI in your writeDate function for timestamp, like:

    
    var writeDate = function(){
      ....
      .....
      var timeStamp = String(year+'-'+month+'-'+date+' '+time+':'+minute+':00.000');
      timeStamp = encodeURI(timeStamp);
      return String("http://107.20.173.235/BlufinAPI/Service/WhackAScrip.svc /GetWASOneMinuteSensexDatawithPosition?TimeStamp="+timeStamp);
    }
    
    

    Then use in ajax url.

    Hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

URL u=new URL("telnet://route-server.exodus.net"); This line is generating : java.net.MalformedURLException: unknown protocol: telnet And I
Is there a simple way of generating a new Route-URL without all this faff.
My script is generating a very long URL just like the one below and
I'd like to start using "SEO Friendly Urls" but the notion of generating and
I'm generating JSON response from PHP witch looks like this: { done:'1', options: [{
Using the resource routes, you can do things like url_for(@apple) to get a url
I'm successfully generating a JSON object using Django Serialization. I do so with this
I am foxed by this... I am generating a slide show using the jQuery
Dear all i am using this function to get the GMT time, i am
I am generating a url in my controller accessed from the relative path /hangouts/test,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.