Send the array in querystring using jquery/javascript
hi friends.
var obj = [];
obj[0] = {Guest:"Ramkumar", City: "Madurai", Mobile: "9578606320", Email: "[email protected]", Address:"first street" };
obj[1] = {Guest:"Sathish", City: "Madurai", Mobile: "9578606320", Email: "[email protected]", Address:"first street" };
obj[2] = {Guest:"Suresh", City: "Madurai", Mobile: "9578606320", Email: "[email protected]", Address:"first street" };
obj[3] = {Guest:"Ganesh", City: "Madurai", Mobile: "9578606320", Email: "[email protected]", Address:"first street" };
var x = JSON.stringify(obj);
window.location = "view.html?Object=" + JSON.stingify(obj);
I got the error : "Internal Server Error."
pls tell how to send the array using querystring.. .
This is not possible in the Small Basic programming language. It is better to look for another forum, e.g. for javascript.
Jan [ WhTurner ] The Netherlands
Similar Messages
-
How to create the animation div dyanimcally using jquery+javascript
Hello,
after a week of researching and without getting the full result i decided to upload new discussion here and maybe some of you guys will help me.thanks in advance.
include the file:
<!--Adobe Edge Runtime-->
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<script type="text/javascript" charset="utf-8" src="animate_edgePreload.js"></script>
<!--Adobe Edge Runtime End-->
html code:
<div id="Stage" class="EDGE-70798230"></div> if i put it like this of course everthing works fine..i can put more with different id's and they will work fine...
my problem:
i dont know how many of this animation i will need...depends of what my server will give me in the response...so i need to create them dynamically...
i tried lots of things:
$("#newAnimation").append('<div id="Stage2" class="EDGE-70798230"></div>'); of course with this nothing happend...it even dont get the symbols under stage..and not any of the css...
$(".EDGE-70798230#Stage").clone().appendTo("#newAnimation");
$("#newAnimation").children('#Stage').prop('id','Stage2'); then mroe css changes and just then i can see the animation but it doesnt work..."play is not defind" when i try to run the animations..
i know there is some function that called createChildSymbol/createSymbolChild but none of them work for me...
i use jquery mobile..so to start the animation for example i do $.Edge.symbol.get($("#Stage")).play();
i tried to use the loadResources etc....doesnt work too..
anyone have some idea what i can do? it is possible?joel pau thank you for all the support.
now i will explain the anwer if anyone else will be stuck with the same problem.
first of all in edge animate need to mark all the things that created and "convert to symbol"(mark all and right click).
second:
in the top of your html file you got the script to the edge_preLoad.js .....
so now in your js code:
lets say we use append to add new div to our code and now we got <div id="new"</div>.
$.Edge.getComposition("yourCompositionID").createSymbolChild("yourSymbolThatCreatedInStepO ne","#new");
like this you can get new animation of the same composition.
if you want to conroll the animation you just need to take the id of the new symbol your created using jquery or any way you like.
and example of control it:
$.Edge.symbol.get("#theNewID").play(); -
Check user permission level using jquery/javascript
On a sharepoint page I need to check permission level for a user and based on permission level he is having i need to hide few elements on that page.any pointers on how to check user permission level using jquery/javascript.
for eg: i need to do something like this
if(userpermissionlevel=="custom read"){//hide some elements}
Any pointers will be helpful.Try below
function checkifUserHasEditPermissions()
context = new SP.ClientContext.get_current();
web = context.get_web();
this._currentUser = web.get_currentUser();
context.load(this._currentUser);
context.load(web,'EffectiveBasePermissions');
context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod), Function.createDelegate(this, this.onFailureMethod));
function onSuccessMethod(sender, args)
if (web.get_effectiveBasePermissions().has(SP.PermissionKind.editListItems))
//User Has Edit Permissions
http://social.technet.microsoft.com/Forums/sharepoint/en-US/f21ad6b1-445a-497d-a286-d3ba8c2928a6/how-to-get-the-current-user-permission-level-on-a-list-item-with-ecmascript
or
http://stackoverflow.com/questions/22122139/check-if-current-users-belongs-to-sp-group-using-javascript-client-side-object-m
http://blog.fidelityfactory.com/2011/11/29/sharepoint-client-ecma-script-check-user-permissions/ -
Submit data using Jquery/Javascript during button click
submit data using Jquery/Javascript during button click
Hi,
From your description, my understanding is that you want to restrict edit form with jQuery/JS.
If you want to restrict the default edit form with jQuery/JS, you could refer to these steps below:
Enter your editform.aspx.
Add below code under <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">.
Save this file.
<script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
function PreSaveAction(){
if($("select[id$='DropDownChoice']").val()==""){
alert("please choose a value!");
return false;
return true;
</script>
The screenshot below is my result(it will not save data after clicking OK in the message alert):
If you customize your list with InfoPath, you could check the checkbox “Cannot be blank” under Validation section or add a rule for your validation as the screenshot below:
In addition, you could check your code with pressing F12 to debug your code.
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Send the auto mail Attachment using client machine outlook application
Hi all,
we are using the following EBS & Database
Database Server
RDBMS : 11.2.0.3.0
Oracle Applications : 12.1.2
i would like to send the file as a attachment using client machine outlook application.
the(.TXT) file has generated by the concurrent program and stored in the oracle server in specific oracle DB directory path. now my requirement is after generating the file then same file has to send mail to specific mail id using client machine outlook application.can anybody suggest me how to do this
(i tried to send mail using UTL_SMTP.DATA but this standard procedure is allowing the file attachment size up to KB only.)
Thanks in advance.kknr wrote:
Hi all,
we are using the following EBS & Database
Database Server
RDBMS : 11.2.0.3.0
Oracle Applications : 12.1.2
i would like to send the file as a attachment using client machine outlook application.
the(.TXT) file has generated by the concurrent program and stored in the oracle server in specific oracle DB directory path. now my requirement is after generating the file then same file has to send mail to specific mail id using client machine outlook application.can anybody suggest me how to do this
(i tried to send mail using UTL_SMTP.DATA but this standard procedure is allowing the file attachment size up to KB only.)
Thanks in advance.Please see old threads for the same topic/discussion.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Send+AND+Email+AND+Attachment+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Send+AND+Email+AND+Output+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Using jQuery JavaScript library in Visual Studio
Good time.
Created a new project for Windows Market JavaScript in Visual Studio. Connected official library jQuery, but do not understand how to work with Visual Studio jQuery? Teams starting with $ () output error. Exactly how to work with jQuery in Visual Studio?
Example:
$('#story').data('id');Hi,
What type of project did you create in VS? ASP.NET web app? Windows Store app? Which version of VS do you use?
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to generate xml file from an array of data using jQuery
Hi All,
Iam facing the problem with diaplaying array of data into a xml file, Actually iam using SAPUI5 commons table to display the backend data, each row in the table has checkbox. If we select each checkbox, iam getting the particular record and push it into an empty array and then i should show that array of data into xml file.OData.request
requestUri: url,
method: "POST",
headers: {
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
"X-CSRF-Token": header_xcsrf_token
data: requestTableDATAArray
// Response after posting and set message
function (data, response)
alert(response.body);//gives xml format -
I want to send the data on internet using my laptop as a hotspot of wifi ?
Dear Team,
I have created an I/O server & sucessfully made communication with Modbus RTU device.
Now I want to send this data on an internet.
I have a laptop, which i have made hotspot using connectify.
so i wish to transmit the data via wifi hot spot.
How to transmit the data via wifi from laptop ?
Can any one help me out on this...This is the easy part. Once you connect via the hotspot you can communicate using your standard internet protocols. Is the application accessing you laptop also running code you have written in
LV?
If so there are examples that show how to transfer data via a TCP/IP connection.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
How to send the ALV GRID output to spool by using the print button in std t
How to send the ALV GRID output to spool by using the print button in standard tool bar.
We have created a button in the va02 transaction. If user click on the button the new screen will be display on that screen we are populating the alv grid output using the oops concept. But i am unable to send the output to spool using the print button in the standard tool bar.
I am able to display the Print parameter dialog box but i am not able to send it to spool.
Kindly help.
Thanks In Advance.
G.V.RamanaHi Shaik,
There is not properties button in my print screen.
MODULE user_command_0900 INPUT.
WHEN 'EXCEL'.
PERFORM excel_download.
WHEN 'PRI'.
PERFORM print_output.
form Print_output.
CALL FUNCTION 'RSPO_LIST_LAYOUT_FITS'
EXPORTING
columns = 80
device = 'ANY '
lines = 65
maxpenality = 1999
TABLES
layouts = lt_layouts1
EXCEPTIONS
unknown_device = 1
OTHERS = 2.
IF sy-subrc = 0.
LOOP AT lt_layouts1.
IF lt_layouts1-penality < 1000 AND
lt_layouts1-penality < l_min_penality.
l_layout = lt_layouts1-layout.
l_min_penality = lt_layouts1-penality.
ENDIF.
ENDLOOP.
IF NOT l_layout IS INITIAL.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
mode = 'CURRENT'
line_size = 80 "#EC *
new_list_id = l_new_list_id
no_dialog = l_no_dialog
layout = l_layout
IMPORTING
out_archive_parameters = rs_arc_params
out_parameters = rs_pri_params
valid = l_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0. " INS SLIN
ENDIF. " INS SLIN
IF rs_pri_params-linsz LT 80 OR
rs_pri_params-linsz LT gt_stack-s_lprint-width.
gt_stack-print_line_break = 'X'.
ELSE.
CLEAR gt_stack-print_line_break.
ENDIF.
IF l_valid NE 'X'.
rs_pri_params = ls_pri_params_sav.
rs_arc_params = ls_arc_params_sav.
ENDIF.
ENDIF.
ENDIF.
endform. " Print_output
CALL METHOD gv_cost_tot_alv_grand->set_table_for_first_display
EXPORTING
is_layout = gs_layout_cost_tot_grand
CHANGING
it_fieldcatalog = gt_fcat_cost_tot_grand[]
it_outtab = gt_cost_tot_grand[].
Please check my code -
I have to send a large number of variable to php and want to
avoid having to repeatedly call the php script, so I thought the
way to do this would be to send an array. I generally use code
similar to the following to receive individual variables in php:
$count = mysql_real_escape_string($_GET["count"]);
Unfortunately, I don't know how to accept an array from Flex
into PHP. I realize that this is more of a php question than a Flex
question, but am hoping that someone has done this before. Here's
how I want to send the array from Flex:These links might help:
link1
link2
link3 -
Jquery/JavaScript to get current browser's name and its version
Hi,
I using sharepoint 2010,
Is it possible using Jquery/JavaScript to get current browser's name and its version.
when my sharepoint site home page opens i need to display a popup msg of current browser name and its version.
can anyone help me on this.
With Regards,
RKPlease use the below code snippet:
And here is the source code that performed the browser detection:
var nVer = navigator.appVersion;
var nAgt = navigator.userAgent;
var browserName = navigator.appName;
var fullVersion = ''+parseFloat(navigator.appVersion);
var majorVersion = parseInt(navigator.appVersion,10);
var nameOffset,verOffset,ix;
// In Opera 15+, the true version is after "OPR/"
if ((verOffset=nAgt.indexOf("OPR/"))!=-1) {
browserName = "Opera";
fullVersion = nAgt.substring(verOffset+4);
// In older Opera, the true version is after "Opera" or after "Version"
else if ((verOffset=nAgt.indexOf("Opera"))!=-1) {
browserName = "Opera";
fullVersion = nAgt.substring(verOffset+6);
if ((verOffset=nAgt.indexOf("Version"))!=-1)
fullVersion = nAgt.substring(verOffset+8);
// In MSIE, the true version is after "MSIE" in userAgent
else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {
browserName = "Microsoft Internet Explorer";
fullVersion = nAgt.substring(verOffset+5);
// In Chrome, the true version is after "Chrome"
else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) {
browserName = "Chrome";
fullVersion = nAgt.substring(verOffset+7);
// In Safari, the true version is after "Safari" or after "Version"
else if ((verOffset=nAgt.indexOf("Safari"))!=-1) {
browserName = "Safari";
fullVersion = nAgt.substring(verOffset+7);
if ((verOffset=nAgt.indexOf("Version"))!=-1)
fullVersion = nAgt.substring(verOffset+8);
// In Firefox, the true version is after "Firefox"
else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) {
browserName = "Firefox";
fullVersion = nAgt.substring(verOffset+8);
// In most other browsers, "name/version" is at the end of userAgent
else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) <
(verOffset=nAgt.lastIndexOf('/')) )
browserName = nAgt.substring(nameOffset,verOffset);
fullVersion = nAgt.substring(verOffset+1);
if (browserName.toLowerCase()==browserName.toUpperCase()) {
browserName = navigator.appName;
// trim the fullVersion string at semicolon/space if present
if ((ix=fullVersion.indexOf(";"))!=-1)
fullVersion=fullVersion.substring(0,ix);
if ((ix=fullVersion.indexOf(" "))!=-1)
fullVersion=fullVersion.substring(0,ix);
majorVersion = parseInt(''+fullVersion,10);
if (isNaN(majorVersion)) {
fullVersion = ''+parseFloat(navigator.appVersion);
majorVersion = parseInt(navigator.appVersion,10);
document.write(''
+'Browser name = '+browserName+'<br>'
+'Full version = '+fullVersion+'<br>'
+'Major version = '+majorVersion+'<br>'
+'navigator.appName = '+navigator.appName+'<br>'
+'navigator.userAgent = '+navigator.userAgent+'<br>'
VARIABLES
DESCRIPTION
navigator.appCodeName
The code name of the browser
(e.g. Mozilla)
navigator.appName
The name of the browser
(e.g. Netscape or Microsoft Internet Explorer)
navigator.appVersion
The browser version (e.g. 3.0 or 4.0)
navigator.userAgent
The header information for the browser.
(e.g. Mozilla/4.0)
navigator.platform
The users operating system
(e.g. WIN32)
http://www.w3schools.com/js/js_window_navigator.asp
Click on Propose as Answer if the solutions works for you. -
Sending an array of images via web service
Hi!
Is it possible to send an array of images using DataHandler[]?
Thank you!
Good Day!
grazieeeHi Michael,
Can I have an example of the JAX-RPC handler method?
Thank you!!
Good Day!
grazieee..
================================================================
"Michael Wooten" <[email protected]> wrote:
>
You can return a DataHandler[], but you can't currently pass one to a
WLS (or WLW)
web service opertion :-)
For now, you should consider using a JAX-RPC Handler to achieve the same
effect.
Regards,
Mike Wooten
"grazieee" <[email protected]> wrote:
Hi!
Is it possible to send an array of images using DataHandler[]?
Thank you!
Good Day!
grazieee -
Hi,
I've developed custom application in Office365(Sharepoint Online) using CSOM/Javascript. Security team from client side has been reported one major issue to the our application that any end user can comment our CSOM/Javascript code and bypass the validation
or can update / insert into sharepoint list item using developer tool/ Console in Google Chrome(F12 Key).
Also end user can write his own separate code in console of Google Chrome (Developer Tool / F12) and can update / insert into Sharepoint List.
Note:- End user has Add, Edit, View permission on all Sharepoint List.
This is one major security flaw of the Sharepoint/Office365 to use CSOM /Javascript for writing code, to overcome this issue could you please provide me some solution.
Your help would be greatly appreciated!!!
Looking for reply.
Thanks,
Mahesh Sherkar
Web: http://Mahesh-Sherkar.com
Email: [email protected]Hello Paras,
Did you get any solution for this? I think your website was implemented this form. Can you please tell me the way how I can achieve it? I am also facing same problem. Please reply me as early as possible.
Thanks,
Mihir -
Problem in call onpremise web service from o365 using jquery ajax
I am trying
to consume an onpremise web service from the o365 site page using
jquery ajax and it's giving me following error:<o:p></o:p>
"Error:
Operation aborted<o:p></o:p>
Here is the
code:<o:p></o:p>
<o:p></o:p>
jQuery.support.cors
= true;<o:p></o:p>
$.ajax<o:p></o:p>
({ <o:p></o:p>
type: "POST",
<o:p></o:p>
url: 'http://**************/WebService.asmx/CreateFolder',
<o:p></o:p>
data: "{'PartId':'"+partnerid+"'}",
<o:p></o:p>
contentType: "application/jsonp; charset=utf-8",
<o:p></o:p>
dataType: "jsonp",
<o:p></o:p>
username: "*****************",
<o:p></o:p>
password: "******************",<o:p></o:p>
success:
function (msg) { $("#divResult").html("Success"); },
<o:p></o:p>
error:
function (xhr, status, error){ console.log(error);
console.log(status); }
<o:p></o:p>
});<o:p></o:p>
Any
help would be greatly appreciated.Thanks.<o:p></o:p>Where exactly you are trying to create folder
This will work on both Office 365 and on prem
http://www.c-sharpcorner.com/UploadFile/0e18a8/create-a-folder-in-document-library-in-sharepoint-2013-using/
var context = SP.ClientContext.get_current();
//gets the current context
var web = context.get_web();
//gets the web object
var list = web.get_lists();
//gets the collection of lists
var targetList;
var itemCreation;
function createFolder() {
targetList = list.getByTitle("MyDocumentLibrary");
itemCreation =
new SP.ListItemCreationInformation();
itemCreation.set_underlyingObjectType(SP.FileSystemObjectType.folder);
itemCreation.set_leafName("MyCustomFolder");
var folderItem = targetList.addItem(itemCreation);
folderItem.update();
context.load(folderItem);
context.executeQueryAsync(onFolderCreationSuccess, onFolderCreationFail); -
SOAP to EMAIL and sending the response to SOAP by integration process
Hi,
I need to design a scenario from SOAP TO EMAIL and based on the status of the EMAIL being sent i need to send the response to SOAP using integration.If it is SUCCESSFUL message i need to send success and if the mail is not sent i need to send error .
could some one help how to design the Integration process for this scenario?will help me what steps i need to use for this .
Thanks
RajeshHi Rajesh,
You can achieve this by making synchronous Interfaces.
1) create Synchronous Outbound and Inbound Service Interface.
2) So you will need to create a response mapping as well.
You get a response from mail adapter in the following format, use this as response Message Type:
- <xim:MailReceipt xmlns:xim="http://sap.com/xi/XI/Mail/30">
<Server>smtp://xx.xxx.xx.xx</Server>
<Greeting>wlg-exht2.XYZ.com Microsoft ESMTP MAIL Service ready at Fri, 28 Jan 2011 20:10:28 +1300</Greeting>
<Format>XIALL</Format>
<UseMailPackage>false</UseMailPackage>
<Encoding>base64</Encoding>
<Subject>Sync Test</Subject>
<From>"From e mail address</From>
<To>"To e mail address"</To>
<Date>2011-01-28T07:10:29Z</Date>
<MailID>1.2.3</MailID>
</xim:MailReceipt>
By this I think you can give the status of Mail.
Regards,
Aravind
Maybe you are looking for
-
Hi All, There is a current funcationality for exporting the value of one entity being selected from a drop down and exporting to excel. This has limited number of records, so excel is able to handle this. But now the need is to select an option that
-
Passing Parameters to Bounded Task Flow from JSPX
Hi All, 1. Created a JSPX page using UIShell template. This page contains 4 UI Components (InputComboBoxListOfValues) in SingleObjectContextArea. Created a Managed Bean for this page and capture the selected value in ValueChangeListner and added th
-
MacBook Pro won't sleep? SIIG expresscard 11-in-1 reader is the cause!
After much searching I have found that the cause of my MacBook Pro not sleeping (blanks screen tries to eject cd, repeat...) is that I have to remove the SIIG card from the slot. Now it sleeps just fine. Thought I could save some people some time. ma
-
"Date" Shown in "Overall Result"
Hi, 1) When I run a report I am getting the Date and all the other KFs in the overall result where in I should see only the Amount added up and shown. 2) When I loaded the master data and the transaction data, I could the data getting loaded multiple
-
How to open or install fonts from a .suit file under Lion?
How to open or install fonts from a .suit file under Lion? Thanks!