473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

String truncated

Hi,

I have this javascript:
=================================================
function confirmAndSubmit(val) {
var confMessage;

confMessage="Your benefit selections are final and cannot be changed once
you proceed. Are you sure?\n\nI understand that the information contained
herein has been provided by #Replace(GetName.name, '"', '\"', 'ALL')#, and
the information will be shared with plan administrators and benefit
providers that have been selected by #Replace(GetName.name, '"', '\"',
'ALL')# for the purpose of determining benefit coverage and claims
adjudication and to persons authorized by law. I understand that my social
insurance number will be used for income tax purposes and payroll deductions
may be adjusted in accordance with benefit selections and personal
information. I further understand it is my responsibility to advise Human
Resources of any change in my personal information within 31 days of the
occurrence.\n\nAuthorizations and Declarations:\n\n1. I hereby apply for
coverage under the group benefits plan offered by my plan sponsor and issued
by the insurer(s).\n\n2. I certify that I have reviewed the personal
information and dependent information and that the information given is
true, correct and complete to the best of my knowledge.\n\n3. In applying
for coverage for my spouse and/or dependants, I confirm that I am authorized
to act on their behalf.\n\n4. I authorize:\n\n - my plan sponsor to
deduct from my pay and remit to the insurer(s) the plan member contributions
required under the plan, if applicable\n\n - the insurer(s) to use my
social insurance number for tax reporting purposes and as an identification
number where it is required in the administration of the plan(s)\n\n -
Easyflex Benefits Administration Inc., my plan administrator, the
insurer(s), any healthcare provider(s), other insurance or reinsurance
companies, or service providers working with the insurer(s) to exchange
personal information, when necessary to determine my eligibility for
coverage and to administer the plan\n\n5. I agree that a photocopy or
electronic copy or the Authorizations and Declarations section is as valid
as the original.\n\n For Quebec Applicants: I request that this form be in
English. Je demande que ce formulaire me soit remis en anglais.";

if (confirm(confMessage))
document.review.submit();

}

================================================== ==

The confirm() message used to popup in full and displayed all the text. But,
since I installed Internet Explorer 7 the message in the confirm box has
been truncated and looks at the end like that "For Quebec Applicants:...".
This is only true for IE 7 and works fine for IE 6 and Firefox.
Unfortunately, I can not dictate to users what to use so, I need to work
around somehow. And, I can not modify the text as it is written by lawers.
So, I have either to contact lawers to re-write the text or, write html
popup.

Before I use one of the above options, is there anything I can do to remedy
this programmatically?

Thank you in advance,

Gene
Feb 27 '07 #1
2 1732
On Feb 27, 10:47 am, "News" <zoom191...@yahoo.comwrote:
Hi,

I have this javascript:
=================================================
function confirmAndSubmit(val) {
var confMessage;

confMessage="Your benefit selections are final and cannot be changed once
you proceed. Are you sure?\n\nI understand that the information contained
herein has been provided by #Replace(GetName.name, '"', '\"', 'ALL')#, and
the information will be shared with plan administrators and benefit
providers that have been selected by #Replace(GetName.name, '"', '\"',
'ALL')# for the purpose of determining benefit coverage and claims
adjudication and to persons authorized by law. I understand that my social
insurance number will be used for income tax purposes and payroll deductions
may be adjusted in accordance with benefit selections and personal
information. I further understand it is my responsibility to advise Human
Resources of any change in my personal information within 31 days of the
occurrence.\n\nAuthorizations and Declarations:\n\n1. I hereby apply for
coverage under the group benefits plan offered by my plan sponsor and issued
by the insurer(s).\n\n2. I certify that I have reviewed the personal
information and dependent information and that the information given is
true, correct and complete to the best of my knowledge.\n\n3. In applying
for coverage for my spouse and/or dependants, I confirm that I am authorized
to act on their behalf.\n\n4. I authorize:\n\n - my plan sponsor to
deduct from my pay and remit to the insurer(s) the plan member contributions
required under the plan, if applicable\n\n - the insurer(s) to use my
social insurance number for tax reporting purposes and as an identification
number where it is required in the administration of the plan(s)\n\n -
Easyflex Benefits Administration Inc., my plan administrator, the
insurer(s), any healthcare provider(s), other insurance or reinsurance
companies, or service providers working with the insurer(s) to exchange
personal information, when necessary to determine my eligibility for
coverage and to administer the plan\n\n5. I agree that a photocopy or
electronic copy or the Authorizations and Declarations section is as valid
as the original.\n\n For Quebec Applicants: I request that this form be in
English. Je demande que ce formulaire me soit remis en anglais.";

if (confirm(confMessage))
document.review.submit();

}

================================================== ==

The confirm() message used to popup in full and displayed all the text. But,
since I installed Internet Explorer 7 the message in the confirm box has
been truncated and looks at the end like that "For Quebec Applicants:...".
This is only true for IE 7 and works fine for IE 6 and Firefox.
Unfortunately, I can not dictate to users what to use so, I need to work
around somehow. And, I can not modify the text as it is written by lawers.
So, I have either to contact lawers to re-write the text or, write html
popup.

Before I use one of the above options, is there anything I can do to remedy
this programmatically?

Thank you in advance,

Gene
You have no control over the confirm window. I would recommend writing
your own pop-up or floating div.

Feb 27 '07 #2
News said the following on 2/27/2007 10:47 AM:

<snip>
Before I use one of the above options, is there anything I can do to remedy
this programmatically?
<URL: http://www.litotes.demon.co.uk/js_info/pop_ups.html>

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Gaurav | last post by:
Hello, I am using visual c++ 6 and i am having problems with string to work. ******** Here is the program project.cpp********* #include <iostream.h> #include <string> #include "stdafx.h"
3
by: Chumley Walrus | last post by:
I'm getting a "string could be truncated" error at the line where my strSql is executed ( my_conn.Execute (strSql) ), but it doesnt happen all the time, just periodically. I used to have this...
7
by: Forecast | last post by:
I run the following code in UNIX compiled by g++ 3.3.2 successfully. : // proj2.cc: returns a dynamic vector and prints out at main~~ : // : #include <iostream> : #include <vector> : : using...
7
by: zjut | last post by:
I need to implement the method : round(String name, int index) The given string maybe the every type of float type, ( the msdn given the regax is that : integral-digits]exponential-digits]) ...
1
by: languy | last post by:
Hi there I'm having a problem when using the SqlDataAdapter. When calling the Update(DataSet, string) method I get the following error message "String or binary data would be truncated". The...
4
by: R.Manikandan | last post by:
Hi In my code, one string variable is subjected to contain more amount of characters. If it cross certain limit, the string content in the varabile is automatically getting truncated and i am...
7
by: carterweb | last post by:
This is how I do it now. 1. Determine the dimensions of the rectangle. 2. Set a my font size to a fixed maximum size. 3. Apply the font my string and measure the string using the graphics...
7
Coldfire
by: Coldfire | last post by:
i am having error ....details are ASP.Net application...in which I have a textbox <asp:TextBox ID="Other" TextMode=SingleLine CssClass="serviceBox" Width="250" Height="45" Runat="server"...
13
by: Hongyu | last post by:
Hi, I have a datetime char string returned from ctime_r, and it is in the format like ""Wed Jun 30 21:49:08 1993\n\0", which has 26 chars including the last terminate char '\0', and i would...
15
geolemon
by: geolemon | last post by:
I'm having a seriously Twilight Zone moment: In the code below, I'm building a SQL command into a string variable, declared at the top of my code. Then, I connect to the database and try to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.