Posts

javascript - Ajax request with prototype - what is transport if not only responseText? -

यह प्रोटोटाइप साइट से एक उदाहरण कोड है। var url = '/ proxy ? Url = '+ encodeurIComponent (' http://www.google.com/search?q=Prototype '); // समान उत्पत्ति नीति को दरकिनार करने के लिए प्रॉक्सी का उपयोग नोटिस नया Ajax.Request (url, {method: 'get', onSuccess: function (transport) {var notice = $ ('notice'); अगर (transport.responseText.match (/ href = "http: \ / \ / prototypejs .org /)) notice.update ('हाँ! आप शीर्ष 10 में हैं!') SetStyle ({background: '#dfd'}); else notice.update ('अरे! आप # 10 से परे हैं ... ') .setStyle ({background:' #fdd '});}}); एजेक्स अनुरोध से प्राप्त डेटा परिवहन पर उपलब्ध है। प्रतिक्रिया पाठ, लेकिन परिवहन क्या है न केवल responseText? असल में, यह एक वस्तु है। लिंक किए गए पृष्ठ सभी अन्य गुणों को सूचीबद्ध करता है। वास्तविक XMLHttpRequest ऑब्जेक्ट के आस-पास आवरण।

html - RSS on the root of my domain -

I have added an RSS feed to my website, but I can not get Google readers and others only give it to me The root domain (www.example.com) wants the full address from the RSS feed. How can I raise my feed without the need to add my full RSS feed address to my users? I've added the meta tag below but it does not seem to work thanks tom Your default document (i.e. example that you see on the example.com) is & lt; Head & gt; There should be something inside the section: & lt; Link rel = "alternate" type = "application / atom + xml" title = "RSS" href = "/ feeds / questions / 1037523" & gt;

Open port in linux with java application -

I have a Java application that socketsurwer in port I test my application in a window machine, and right By the way, but when I test it in a Linux machine, the port is not listening. Is there any way to open the port especially in Linux machine? I run the 'netstat' command, and the port I use in my application does not appear. It does not throw any exceptions I am trying to connect to the application from another machine, and the connection has been denied. Honestly, I do not know why it did not ... Help Please Thank you, David To open the port number you are trying to use? If it is below 1024, only root users can open it or access it.

Why the following Scala code does not compile unless explicit type parameters are added? -

ऑब्जेक्ट टेस्ट अनुप्रयोग को विस्तारित करता है {// compiles: मानचित्र [int, value] (0 - & gt; ज्ञात टाइप (classOf) [ऑब्जेक्ट]), 1 - & gt; अज्ञातवेला ()) // संकलित नहीं करता है: मानचित्र (0 - & gt; ज्ञात टाइप (कक्षा [उद्देश्य]), 1 - & gt; अज्ञातवेल्व ())} सील विशेषता मान {डीआरटी टाइपटिप: विकल्प [वर्ग [_]] = कोई नहीं} मामला वर्ग ज्ञात टाइप (टाइप: वर्ग [_] [वर्ग [_]] = कोई नहीं} ]) मूल्य बढ़ाता है {def getType = कुछ (typ)} संकलित करने के लिए ऊपर कोड विफल रहता है। कंपाइलर का त्रुटि संदेश है: Experiment.scala: 10: त्रुटि: प्रकार बेमेल; पाया गया: (इंट, ज्ञात टाइप) की आवश्यकता: (इंट, उत्पाद के साथ मान {def getType: विकल्प [java.lang.Class [_ $ 2]]}) जहां प्रकार _ $ 2 0 -> ज्ञात टाइप (कक्षा [उद्देश्य]), ^ एक त्रुटि मिली अगर मैं अज्ञातमान के लिए def getType: विकल्प [वर्ग [_]] = कोई नहीं की विधि घोषणापत्र बदलता हूं, तब भी मानचित्र ( ) टाइप मापदंडों के बिना। क्यों? हम्म, यह अजीब है मुझे एक बग की तरह दिखता है। एक तरह से आप इसे ठीक कर सकते हैं वैल्यू getTy...

sql server 2005 - SQL Pivot based on value between two columns -

I have a table in which I have two columns, among other things, for a start date and the other end date for. I have to write a question which will return a column for each month of the year and the value of that column is 1 if the month is between 0. PIVOT statement What I see here, but best I can tell PIVOT section is looking to match values, do not check that the value is between the other two or not Whether the PIBT clause is constructed correctly Or do I need to break and write details of 12 cases and then add them? I think there are three basic steps I get here: Get a date in every 12 months Check whether this date is between start and end date The result of PIVOT To get 12 dates, one for each month, I have a few recursive with a statement to create a temporary table with 1 column of 12 dates Used as the date (date) as the date (date) of the month (date) (select date) Unius Select date from all months (month, 1, date) where the data (month, date, Date) & lt;...

What is the most efficient way to create an order count summary by hour, day, month in SQL Server 2005? -

एक तालिका को देखते हुए: तालिका #orders बनाएं (ऑर्डिड इंट, ऑर्डरडेट टाइमडेटाक) एसक्यूएल को वर्तमान और पिछले 24 घंटों से चालू होने वाले आदेशों की संख्या और पिछले 7 दिनों के लिए कुल ऑर्डर और पिछले 7 दिनों के लिए ऑर्डर की रिपोर्ट करने के लिए सबसे अच्छा तरीका क्या है वर्तमान सप्ताह और पिछले 4 सप्ताह, और महीनों और पिछले 6 महीनों के लिए कुल आदेश? मैं सोच रहा हूं कि यह विश्लेषणात्मक कार्यों का उपयोग करके एक एकल एसक्यूएल में कुशलतापूर्वक लुढ़का जा सकता है, या यदि 4 sql बयान पैदा करते हैं डेटा के 4 समूह एकमात्र (या सर्वोत्तम) तरीका है। इसके अलावा, प्रति घंटा / दिन / सप्ताह समूहीकरण दिया जाता है, एक एसक्यूएल सर्वर में ऐसा कैसे होगा? डीटेटमुम्स गधे में दर्द होने लगते हैं, मुझे उनके साथ ऐसा कुछ करना है ... विचार? SSAS क्यूब में रखें और वहां से हो सकता है? चुनें DATEPART (महीना, ऑर्डर डेट टाइम ), DatePart (सप्ताह, orderdatetime), DatePart (दिन, orderdatetime), COUNT (*) #orders ग्रुप से DatePart (महीने, orderdatetime), DatePart (सप्ताह, orderdatetime) द्वारा, DatePart (दिन, ord...

asp.net - How to preserve value of dynamic created gridview column -

I have made all the gridview columns dynamic and the column also exists checkbox. The problem with Gridview does not preserve this dynamic-built column value. For example if I have selected some line through the checkbox column and clicked on the button to get all the selected row IDs, the page becomes empty as the grid is not empty with the data value. Any help would be highly appreciated. Thanks, Alvin This probably happens when you are creating dynamic columns Are there. If the column is created in the page_load event, or after the page event process, the viewstate will not be able to populate your columns on a postback. If possible, try to create your dynamic columns in the Page_Init event, this will allow the viewsto to properly load the column.