client-side

Client-side Javascript app - url routing with no hash tag

邮差的信 提交于 2019-11-27 11:29:32
I'm working on a new client-side only app with the latest version of Ember.js. There is a single PHP page which builds the scripts, css, template files, etc. and delivers it all into index.php. I'm using an htaccess directive so that all requests are rewritten to /index.php. The PHP is only there to conveniently package the Javascript, as far as I'm concerned. Currently, routes in the browser look like this and work just fine. /#/about /#/favorites /#/etc /#/posts/5/edit However, I would like them to look like this - which do not work just fine. /about /favorites /etc /posts/5/edit The exact

Save the document generated by javascript

孤街浪徒 提交于 2019-11-27 11:20:42
问题 Javascript can manipulate the document the browser is displaying, so the following: <script> document.write("<table><tr><td>Hola</td><td>Adios</td></tr></table>"); </script> Will make the browser display a table just like if it was the original HTML document: <table> <tr> <td>Hola</td> <td>Adios</td> </tr> </table> Is there a way I can save/serve this document content? Currently we have some nicely generated reports using Ext-js, what I would like to do is to have the "text/html" version of

Can Python be used for client side web development? [closed]

六月ゝ 毕业季﹏ 提交于 2019-11-27 10:55:11
If yes are there any frameworks/Tutorials/tips/etc recommended? N00b at Python but I have tons of PHP experience and wanted to expand my skill set. I know Python is great at server side execution, just wanted to know about client side as well. Have you seen skulpt? http://www.skulpt.org/ You can use pyjamas to convert Python code to JS code that runs in the browser (note that pyjamas also offers much more). So YES, you can use Python for client side web development. Pyjamas is basically a port of the Google Web Toolkit , which allows you to write client side code in Java. Silverlight can run

Client-side “Feature Tour” (tutorial/instructional) overlay system? [closed]

浪子不回头ぞ 提交于 2019-11-27 10:01:43
Is there a system/framework in existence which focuses on providing tutorial / help like overlays in the browser? Example: You have a webapp which requires a certain level of instruction to the user. In this instruction process you wish to "highlight" (e.g. arrow, colour shading, pulsing border, etc) a certain element on the page, with an accompanied message. This would be a true overlay, so it would function only in absolute positioning, and not interfere with the existing layout. I'm looking for an existing solution, before I consider rolling my own. Spot Thanks to Johnson for giving me a

Which CSS selectors or rules can significantly affect front-end layout / rendering performance in the real world?

南笙酒味 提交于 2019-11-27 09:11:00
问题 Is it worth worrying about CSS rendering performance? Or should we just not worry about efficiency at all with CSS and just focus on writing elegant or maintainable CSS instead? This question is intended to be a useful resource for front-end developers on which parts of CSS can actually have a significant impact on device performance, and which devices / browsers or engines may be affected. This is not a question about how to write elegant or maintainable CSS, it's purely about performance

Can I use HTML5 to send a client-side email?

北慕城南 提交于 2019-11-27 09:07:50
I want to send an email in HTML5. I don't want to force the user to open a mail client, I want to send the email directly from the web page. On a side note, is there any way at all to do this in JavaScript? I know it's probably not possible, just wondering if there are any crafty ways to pull it off going completely through the client. Yes it is possible. But not practical ** See Edit 2 Some HTML5 implementations include support for websockets, essentially a tcp connection to a server. Overlay some send/recv code and you can build a SMTP client. In fact it looks like nodejs and websocket

Wrong usage of d3 scale with same values in data?

让人想犯罪 __ 提交于 2019-11-27 08:08:44
问题 I'm new to d3 and using it for creating a simple chart using array of numbers where the value '16' appears twice in it. It generate the chart with one 'missing' 'rect' element for the 2nd '16' value, when I check the html I see that both '16' rect has same 'y' value of 72. Please tell me what I'm doing wrong, thanks code: var data = [4, 8, 15, 16, 23, 16]; var chart = d3.select("body").append("svg") .attr("class", "chart") .attr("width", 420) .attr("height", 20 * data.length); var x = d3

triggering client-side filtering at load time in a jqGrid

冷暖自知 提交于 2019-11-27 07:07:03
问题 I'm trying to get a JqGrid to do some client-side filtering (and sorting) just after it has finished loading in the data. I can set the search-field correctly, but calling TriggerToolbar() doesn't seem to have any effect. $("#list").GridUnload(); var mygrid = $("#list").jqGrid({ url: '@Url.Action("GetSearchCriteriaWithNoComponents", "SearchCriteria")', postData: { BookingSiteId: function () { return $("#BookingSiteId option:selected").val(); }, MethodId: function () { return $("#MethodId

ASP.NET confirm before executing codebehind

风流意气都作罢 提交于 2019-11-27 06:39:59
问题 I have a form where a user can delete a record, and I want a pop-up message where the user has to click okay to confirm the delete. Delete button: <asp:Button ID="btnDelete" runat="server" Text="Delete" UseSubmitBehavior="false" OnClick="btnDelete_Click" OnClientClick="confirmation();" /> Confirmation function: function confirmation() { var answer = confirm("Are you sure you want to delete? This action cannot be undone.") } So right now, clicking the delete button executes the btnDelete_Click

Android: Using server-side when working with Parse

醉酒当歌 提交于 2019-11-27 05:48:50
问题 Me and my friend are working on an app., and we wish to use Parse.com as our data base from which we can retrieve info. We can't decide what is the best way to access the data on Parse. For the sake of the example, our app. (i.e. client side) needs something stored on the Parse data base (say some number) - should it directly run the query using the Parse API, or should it make a request to a server side, let it retrieve that number from Parse, and send it back to the client? We know there's