Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Identify jQuery data

Identify jQuery data

Scheduled Pinned Locked Moved JavaScript
javascriptdatabaseregexxmlhelp
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mugdha_Aditya
    wrote on last edited by
    #1

    Below is code i have got from " this link. can any one tell me.. what link it will generate??"[^]

    var from = "2011-10-09";
    var to = "2011-11-09";

    //IG fix for dateformat yyyy-mm-dd, must match before sending.
    if (to.match(/^\d{4}[-]\d{2}[-]\d{2}$/) && from.match(/^\d{4}[-]\d{2}[-]\d{2}$/)) {
    var query = webCore.createQuery(webCore.marketAction.getDataSeries, {}, {
    FromDate: from,
    ToDate: to,
    Instrument: webCore.getInstrument(),
    hi__a: "0,1,2,4,21,8,10,11,12,9",
    ext_xslt_lang: currentLanguage,
    ext_xslt_options: "," + $("#adjustedId:checked").val() + ",", //$("#unadjustedId:checked").val() + ",",
    ext_xslt: "hi_table_shares_adjusted.xsl",
    ext_contenttype: "application/ms-excel",
    ext_contenttypefilename: "_" +
    webCore.getInstrument() + ".xls",
    ext_xslt_hiddenattrs: ",ip,iv,",
    ext_xslt_tableId: "historicalTable"
    }
    );

    $("#excelQuery").val( query );
    $("#excelForm").attr( "action", webCore.proxyURL ).submit();

    i got this code from view source. i think webCore.getInstrument() will return SSE4928 but am not sure whta will be whole query.. so i will get link and i can access data from it.

    D J 2 Replies Last reply
    0
    • M Mugdha_Aditya

      Below is code i have got from " this link. can any one tell me.. what link it will generate??"[^]

      var from = "2011-10-09";
      var to = "2011-11-09";

      //IG fix for dateformat yyyy-mm-dd, must match before sending.
      if (to.match(/^\d{4}[-]\d{2}[-]\d{2}$/) && from.match(/^\d{4}[-]\d{2}[-]\d{2}$/)) {
      var query = webCore.createQuery(webCore.marketAction.getDataSeries, {}, {
      FromDate: from,
      ToDate: to,
      Instrument: webCore.getInstrument(),
      hi__a: "0,1,2,4,21,8,10,11,12,9",
      ext_xslt_lang: currentLanguage,
      ext_xslt_options: "," + $("#adjustedId:checked").val() + ",", //$("#unadjustedId:checked").val() + ",",
      ext_xslt: "hi_table_shares_adjusted.xsl",
      ext_contenttype: "application/ms-excel",
      ext_contenttypefilename: "_" +
      webCore.getInstrument() + ".xls",
      ext_xslt_hiddenattrs: ",ip,iv,",
      ext_xslt_tableId: "historicalTable"
      }
      );

      $("#excelQuery").val( query );
      $("#excelForm").attr( "action", webCore.proxyURL ).submit();

      i got this code from view source. i think webCore.getInstrument() will return SSE4928 but am not sure whta will be whole query.. so i will get link and i can access data from it.

      D Offline
      D Offline
      Dennis E White
      wrote on last edited by
      #2

      I am kind of at a lost here without being to know more about what webCore is. I can speculate that this is a webKit issue but I don't want to make that assumption. from the text of your post...

      Mugdha_Aditya wrote:

      Below is code i have got from " this link.

      can any one tell me.. what link it will generate??"[^]

      it looks like you intended to offer a link but maybe deleted it or something?? try posting the information again or if you can debug the call and see what query looks like. since you are assigning it to a text box I have to ask what are you seeing when you run the code?? if nothing then my first assumption is that query is not text but rather maybe an object.

      as if the facebook, twitter and message boards weren't enough - blogged

      M 1 Reply Last reply
      0
      • D Dennis E White

        I am kind of at a lost here without being to know more about what webCore is. I can speculate that this is a webKit issue but I don't want to make that assumption. from the text of your post...

        Mugdha_Aditya wrote:

        Below is code i have got from " this link.

        can any one tell me.. what link it will generate??"[^]

        it looks like you intended to offer a link but maybe deleted it or something?? try posting the information again or if you can debug the call and see what query looks like. since you are assigning it to a text box I have to ask what are you seeing when you run the code?? if nothing then my first assumption is that query is not text but rather maybe an object.

        as if the facebook, twitter and message boards weren't enough - blogged

        M Offline
        M Offline
        Mugdha_Aditya
        wrote on last edited by
        #3

        thanks for the reply. :) Website is http://www.nasdaqomxnordic.com/shares/Historical_prices/?Instrument=SSE4928[^] i think Webcore is jQuery File. its not our website.. so i cant debug :(

        D 1 Reply Last reply
        0
        • M Mugdha_Aditya

          thanks for the reply. :) Website is http://www.nasdaqomxnordic.com/shares/Historical_prices/?Instrument=SSE4928[^] i think Webcore is jQuery File. its not our website.. so i cant debug :(

          D Offline
          D Offline
          Dennis E White
          wrote on last edited by
          #4

          Mugdha_Aditya wrote:

          i think Webcore is jQuery File.

          I can tell you that Webcore is not a part of jQuery or the jQuery UI. it might be part of a jQuery plugin but definitely not a part of the core jQuery. I can see in the sight that you gave where they are including webCore and I can see where they are probably calling it with the search button but that doesn't help me with your question. I will help you with your questions but you have to do more of the reverse engineering. just out of curiosity are you trying to reproduce what the sight does or something similar to it?? if so can I recommend that you look at node.js?? they have a great example of scrapping a page that will probably help with what you are trying to do.

          as if the facebook, twitter and message boards weren't enough - blogged

          M 1 Reply Last reply
          0
          • D Dennis E White

            Mugdha_Aditya wrote:

            i think Webcore is jQuery File.

            I can tell you that Webcore is not a part of jQuery or the jQuery UI. it might be part of a jQuery plugin but definitely not a part of the core jQuery. I can see in the sight that you gave where they are including webCore and I can see where they are probably calling it with the search button but that doesn't help me with your question. I will help you with your questions but you have to do more of the reverse engineering. just out of curiosity are you trying to reproduce what the sight does or something similar to it?? if so can I recommend that you look at node.js?? they have a great example of scrapping a page that will probably help with what you are trying to do.

            as if the facebook, twitter and message boards weren't enough - blogged

            M Offline
            M Offline
            Mugdha_Aditya
            wrote on last edited by
            #5

            No..Not just for curiosity .. I need to collect page data of given page for some use. Please help me.. how can i do that.

            D P 2 Replies Last reply
            0
            • M Mugdha_Aditya

              No..Not just for curiosity .. I need to collect page data of given page for some use. Please help me.. how can i do that.

              D Offline
              D Offline
              Dennis E White
              wrote on last edited by
              #6

              did you check out node.js[^] like I mentioned? they have some sample code for scraping for a web page. in their example they scrape youtube and present it in a mobile jQuery ui listbox. maybe you can use that code as an idea to do the same thing?? I am sorry but reverse engineering another web page is a bit beyond normal question answering in my opinion.

              as if the facebook, twitter and message boards weren't enough - blogged

              M 1 Reply Last reply
              0
              • D Dennis E White

                did you check out node.js[^] like I mentioned? they have some sample code for scraping for a web page. in their example they scrape youtube and present it in a mobile jQuery ui listbox. maybe you can use that code as an idea to do the same thing?? I am sorry but reverse engineering another web page is a bit beyond normal question answering in my opinion.

                as if the facebook, twitter and message boards weren't enough - blogged

                M Offline
                M Offline
                Mugdha_Aditya
                wrote on last edited by
                #7

                ohk.. thanks. I just want to read the data in my code behind. (asp.net) so i was tring to get website excel link..

                1 Reply Last reply
                0
                • M Mugdha_Aditya

                  Below is code i have got from " this link. can any one tell me.. what link it will generate??"[^]

                  var from = "2011-10-09";
                  var to = "2011-11-09";

                  //IG fix for dateformat yyyy-mm-dd, must match before sending.
                  if (to.match(/^\d{4}[-]\d{2}[-]\d{2}$/) && from.match(/^\d{4}[-]\d{2}[-]\d{2}$/)) {
                  var query = webCore.createQuery(webCore.marketAction.getDataSeries, {}, {
                  FromDate: from,
                  ToDate: to,
                  Instrument: webCore.getInstrument(),
                  hi__a: "0,1,2,4,21,8,10,11,12,9",
                  ext_xslt_lang: currentLanguage,
                  ext_xslt_options: "," + $("#adjustedId:checked").val() + ",", //$("#unadjustedId:checked").val() + ",",
                  ext_xslt: "hi_table_shares_adjusted.xsl",
                  ext_contenttype: "application/ms-excel",
                  ext_contenttypefilename: "_" +
                  webCore.getInstrument() + ".xls",
                  ext_xslt_hiddenattrs: ",ip,iv,",
                  ext_xslt_tableId: "historicalTable"
                  }
                  );

                  $("#excelQuery").val( query );
                  $("#excelForm").attr( "action", webCore.proxyURL ).submit();

                  i got this code from view source. i think webCore.getInstrument() will return SSE4928 but am not sure whta will be whole query.. so i will get link and i can access data from it.

                  J Offline
                  J Offline
                  jkirkerx
                  wrote on last edited by
                  #8

                  It doesn't return anything. The match is regex for a date 2011 11 19 This is the document path, because it just a file name, it resides in the same folder. So type in the url + filename below and see if it exist, your browser will display the xsl data. ext_xslt: "hi_table_shares_adjusted.xsl", Would it not be easier to just pay for a subscription to the data, it may only be $50 USD a month, and they will give you an api to fetch the information, and a username and password.

                  1 Reply Last reply
                  0
                  • M Mugdha_Aditya

                    No..Not just for curiosity .. I need to collect page data of given page for some use. Please help me.. how can i do that.

                    P Offline
                    P Offline
                    phome
                    wrote on last edited by
                    #9

                    From the page source code , you can find this: http://www.nasdaqomxnordic.com/System/webcore_js/[^]

                    Good day,Good job,Good life

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups