I'm creating a pseudo type script at the moment using a well known programs API which uses JS. When the user is prompted and enters in a name since the API uses ECMA 3.0 I cannot directly use String.Prototype.Trim() as it's not supported in ECMA 3.0. I have a prompt set in a do while loop, at present the do while loop checks if the user entered anything otherwise by default "undefined" is created which is the reason for the do while loop, to prevent the user from strictly hitting return and "undefined" is created. Using String.Prototype.Trim() I want to …

Member Avatar
+0 forum 0

I'm using the Prototype framework to send a form via Ajax, and I'm using a form validation script ([url]http://tetlaw.id.au/view/javascript/...eld-validation[/url]) to validate the form. Both work beautifully by themselves. The problem is this: I need some way to merge the two so that the form submits after validation, and that the form is validated before it's submitted. Here's the validation code: [code] var dancingForm = new Validation('formDance', {useTitles:true}); [/code] And the submission code: [code] document.observe('dom:loaded', function() { function sendForm(event){ // we stop the default submit behaviour Event.stop(event); var oOptions = { method: "POST", parameters: Form.serialize("formDance"), asynchronous: true, onFailure: function (oXHR) { …

Member Avatar
Member Avatar
+0 forum 7

Hello, A website I'm working on requires that the Prototype framework is included, but I'm also using jQuery for some custom behaviours. I'm using the jQuery [maximage](http://www.aaronvanderzwan.com/maximage/1/) slider plugin almost successfully; the only issue is that it seems to conflict with prototype - yes, even with jQuery's noconflict used - and somehow generates many extra slides. Please see [this](http://jsfiddle.net/verism/GYWQQ/1/) example for reference. Has anyone got the vaguest notion how I can overcome this? Obviously, I'd rather not use extra client-side scripts to remove the unwanted elements after they're created. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 9

hi fellas, Im using javascript framework in uploading image via ajax but the problem is $_FILE is empty here s my code: <form action="upload.php" method="post" enctype="multipart/form-data" id="upload" name="upload"> <input type="file" name="file" id="file" style="border:none"/></center> </form> js var url = 'upload.php'; new Ajax.Request(url, { method: 'post', contentType: 'multipart/form-data', encoding: 'UTF-8', parameters: $('upload').serialize(true), onSuccess: function(transport) { var notice = $('error'); if (transport.responseText=='success'){ alert('success'); }else{ alert(transport.responseText); } } }); php echo $_FILES["file"]["name"] // is empty.... uploading script here....

Member Avatar
Member Avatar
+0 forum 5

Hello, am looking for a tool which can help me render a static website quickly so as to show the clients a quick prototype of how their website would look, and the tool must be able to generate the html codes and store them, as well as provide the design as well so that I can run the site locally on any machine. I've had a look at dreamweaver but not really satisfied with it (thou am leaving it as the last option in case I do not get anything), and I do not want to use CMS as the …

Member Avatar
Member Avatar
+0 forum 3

I'm trying to create a class which finds the sum of multiples for a given base I have the code written with out a class im just having trouble converting it into a class my total function isnt retrieving the data from the object maybe? /* If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. */ #include<iostream> using namespace std; class SumofMultiples { int base, multia, …

Member Avatar
Member Avatar
+0 forum 1

I have put together some code for a homework assignment and I have almost got it working. There are a few key items that are missing or not fully functional and I am fresh out of ideas on how to attack it. The code is to take 9 digits/integers from a user's input and through a "selection sort" put them in order from least to greatest. I am also supposed to show the array for each step the code takes (each time a number moves). [CODE] /*%%%%%%%%%%%%%%%%%%%%%% Selection Sort Algorithm %%%%%%%%%%%%%%%%%%%%%%*/ #include <iostream> #include <iomanip> #include <sstream> #include <cmath> #include …

Member Avatar
Member Avatar
+0 forum 2

im creating a prototype for a hotel using netbeans ide 7.0. I used the drag and drop in designing the buttons, panels, label etc... then what i want to happen is when the button is clicked a jpanel/ jframe that i did will appear. How would i do that? I don't even know whats that called so i am having a hard time searching it in the net. All help is appreciated. Thank you.

Member Avatar
Member Avatar
+0 forum 5

I am looking to recreate a form function like this website: [URL="http://www.plus.approvedtelephonesystems.co.uk/UK/questionnaire7/uk-companies.aspx?gclid=CLSH-eTeg60CFQUhtAodyhSNTg"]http://www.plus.approvedtelephonesystems.co.uk/UK/questionnaire7/uk-companies.aspx?gclid=CLSH-eTeg60CFQUhtAodyhSNTg[/URL] What happens when you click the answer to the question the form scrolls to the next function. I would love to know how this is done. I am not a javascript developer but having looked into this the form uses scriptaculous.js and prototype.js. Is there an online form builder or a program out there that can re-create this or is it just a simple bit of javascript added onto a form? Thank you for any help!!! Tim

Member Avatar
Member Avatar
+0 forum 1

I'm working on a project and i'm having a bit of trouble. the basic idea is to make an employee database using a basic structure. the program is to have 3 files and in the header file the professor wants the function prototype to be: [CODE]int addEmployee (struct employee *, int);[/CODE] I've got the employee structure set up and the integer is just the current # of employee's so no problem there. My only real issue comes from the first parameter. We're supposed to have an array that stores every employee that is created, but i dont know how to …

Member Avatar
Member Avatar
+0 forum 3

Hi, I have really lame problem which is probably that easy, that I can't get it working. I have program like this below. And I need to make prototype to get it working. But I don't know how it need to look like. I don't want to have these functions before main, I need to have it it below like I'm showing here. [CODE]#include <stdio.h> //Here I need my prototype enum colours { BLUE, YELLOW, BROWN, BLACK, RED, KHAKI }; int main() { calculate(); printf("%f %f %f\n", demo.a, demo.b, demo.c); return 0; } typedef struct version { double a, b, …

Member Avatar
Member Avatar
+0 forum 1

I've looked into all the other threads and I am still lost. [CODE]#include<iostream> #include<cmath> using namespace std; //Prototype's ////////////////////////////// double functiony(double); double area(int, double, double); // Main ////////////////////////////// int main (void) { //Solving for y=x^3 using k as y and d as x double k; double d=0; k = functiony(d); //Intergration double sum; sum = area (60, 1,8); cout<<sum<<endl; return(0); } // Function definitions ////////////////////////////// //Calling y which I call k and d is x; void functiony() { double k; k=d*d*d; return(k); } } //Intergration f is number of rectangles, g is x1 and h is x2, d is x. …

Member Avatar
Member Avatar
+0 forum 1

Hi, Just a quick question, I need to add extra functionality to some code but I have found syntax I am unfamiliar with. I'm pretty much a noob to c++ so it probably quite simple but I have had enormous problems trying to define a search term for google and I hope some one could help and point me in the right direction. In the header it is defined as :- [CODE] uint16_t _inverse_logic:1; [/CODE] I am unsure of what the ':1' suffix is for and in the cpp file it is defined as [CODE] _inverse_logic(inverse_logic) { setTX(transmitPin); setRX(receivePin); } …

Member Avatar
Member Avatar
+0 forum 3

can i make a prototype for a class member function outside of the class declaration? i tried this: but it didnt work [CODE]class cls; void cls::dosomething(); class cls { public: void dosomething(){} };[/CODE] thanks

Member Avatar
Member Avatar
+0 forum 6

Hi, I want to prototype an online business-application which will probably be implemented using Adobe Flex or .NET WPF. The application will make use of drag&drop and other functionalities which are typically known from desktop-applications. I am searching for way to prototype these RIA-features. Best would be if there would be also templates available, e.g. for this frequently seen Web 2.0 calendar which enables you to choose a specific date or a date range and things like that. I myself don't know very much about what the application will look like yet, that is why I can't go into the …

Member Avatar
Member Avatar
+0 forum 2

Hi I am using this script. [url]http://digitalhymn.com/argilla/tipmage/[/url] **It is not possible to apply Tipmage to more than one image in a single page** [B]Is this possible to apply this class to more than one image?[/B] Thanks

Member Avatar
Member Avatar
+0 forum 1

For a function protoype header can one be double while the other one is void? I'm trying to make the void displayPayment function work, but am a little lost. Should I turn the carPrice, Rebate, ect.. into void functions in the prototype, or can they work without doing that? Thanks for your time, Michelle [CODE=cpp]#include <iostream> #include <iomanip> #include <cmath> using namespace std; //function prototype double calcPayment (double, double, int); void displayPayment (double, double&); int main() { //declare variables double carPrice = 0.0; double rebate = 0.0; double creditRate = 0.0; double dealerRate = 0.0; int term = 0; double …

Member Avatar
Member Avatar
+0 forum 2

I am trying to learn a little about ajax and prototype.js. Here's what I have so far: [B]boardtest.php[/B] [CODE] <html> <head> <title>AJAX Test with new javascript</title> <script src="scripts/prototype.js" type="text/javascript"></script> <script src="scripts/ajax.js" type="text/javascript"></script> </head> <body> <div id="products">(...locaing inventory...)</div> </body> </html> [/CODE] [B]ajax.php[/B] [CODE] <?php $company = $_GET['company']; $limit = $_GET['limit']; $line = "The company, ".$company.", has ".$limit." employees."; echo $line; ?> [/CODE] [B]ajax.js[/B] [CODE] new Ajax.Updater('products', '/ajax.php', { method: 'get', parameters: {company: 'example', limit: 12} }); [/CODE] and, of course, prototype.js, which is the standard .js file. I know I am doing, or not doing, something that will be completely obvious …

Member Avatar
Member Avatar
+0 forum 7

Hi, I'm trying to create a Youtube video inserter script for my site. Long story short, I need to be able to prototype an HTML element and add a string into the element's innerHTML, like this: [ICODE]myObj.insertVid(5sw2OvIgoO8);[/ICODE] I'm using jQuery to getElementsByClass("sip"). [CODE]Object.prototype.insertVid = function(id) { if (id.length > 0) { var insert_string = '<embed src="http://www.youtube.com/v/' + id + '&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"/>'; this.innerHTML += insert_string; } } embeds = $(".sip"); for (var i=0; i<embeds.length; i++) { // various code to find param for insertVid() embeds[i].insertVid(id); }[/CODE] All of this code seems correct to me, but in the …

Member Avatar
Member Avatar
+0 forum 7

The End.